Browse Source

add bare bones devstack integration

this will let us run tempest test in CI

Change-Id: Id7d996e736c14cebdd430248aa72b8b5e50f0720
Sumit Jamgade 9 months ago
parent
commit
98d1f5cd12
3 changed files with 48 additions and 0 deletions
  1. 32
    0
      devstack/README.rst
  2. 13
    0
      devstack/plugin.sh
  3. 3
    0
      devstack/settings

+ 32
- 0
devstack/README.rst View File

@@ -0,0 +1,32 @@
1
+====================
2
+Enabling in Devstack
3
+====================
4
+
5
+**WARNING**: the stack.sh script must be run in a disposable VM that is not
6
+being created automatically, see the README.md file in the "devstack"
7
+repository.
8
+
9
+1. Download DevStack::
10
+
11
+    git clone https://git.openstack.org/openstack-dev/devstack.git
12
+    cd devstack
13
+
14
+2. Add this repo as an external repository::
15
+
16
+     > cat local.conf
17
+     [[local|localrc]]
18
+     enable_plugin freezer-tempest-plugin https://git.openstack.org/openstack/freezer-tempest-plugin
19
+
20
+3. run ``stack.sh``
21
+
22
+Running Freezer tempest tests
23
+=============================
24
+
25
+1. Listing Freezer tempest tests::
26
+
27
+    tempest list-plugins
28
+
29
+2. Running freezer tempest tests::
30
+
31
+    cd /opt/stack/tempest
32
+    tempest run -r freezer_tempest_test

+ 13
- 0
devstack/plugin.sh View File

@@ -0,0 +1,13 @@
1
+# install_freezer_tempest_plugin
2
+function install_freezer_tempest_plugin {
3
+    setup_dev_lib "freezer-tempest-plugin"
4
+}
5
+
6
+if [[ "$1" == "stack" ]]; then
7
+    case "$2" in
8
+        install)
9
+            echo_summary "Installing freezer-tempest-plugin"
10
+            install_freezer_tempest_plugin
11
+            ;;
12
+    esac
13
+fi

+ 3
- 0
devstack/settings View File

@@ -0,0 +1,3 @@
1
+GITREPO["freezer-tempest-plugin"]=${FREEZER_TEMPEST_REPO:-${GIT_BASE}/openstack/freezer-tempest-plugin.git}
2
+GITDIR["freezer-tempest-plugin"]=$DEST/freezer-tempest-plugin
3
+GITBRANCH["freezer-tempest-plugin"]=master

Loading…
Cancel
Save