Browse code

Add an explicit test-config phase to devstack plugins

This commit adds a new phase to the devstack plugin interface for
configuring test environments. It runs after everything in devstack
(except for the final output commands) to ensure that tempest or
any other dependency is installed prior to running it.

Change-Id: I52128756f18d3857963a0687de77f7cdfd11fb3e

Matthew Treinish authored on 2016/05/03 02:29:10
Showing 2 changed files
... ...
@@ -99,6 +99,8 @@ The current full list of ``mode`` and ``phase`` are:
99 99
       should exist at this point.
100 100
    -  **extra** - Called near the end after layer 1 and 2 services have
101 101
       been started.
102
+   - **test-config** Called at the end of devstack used to configure tempest
103
+      or any other test environments
102 104
 
103 105
 -  **unstack** - Called by ``unstack.sh`` before other services are shut
104 106
    down.
... ...
@@ -1367,6 +1367,12 @@ if is_service_enabled cinder; then
1367 1367
     fi
1368 1368
 fi
1369 1369
 
1370
+# Run test-config
1371
+# ---------------
1372
+
1373
+# Phase: test-config
1374
+run_phase stack test-config
1375
+
1370 1376
 
1371 1377
 # Fin
1372 1378
 # ===