blob: 06c73ec76328a6de4eccf321c760e1b8ec3d45df [file] [log] [blame]
Dean Troyer768295e2013-01-09 13:42:03 -06001# tempest.sh - DevStack extras script
2
Dean Troyercdf3d762013-10-15 09:42:43 -05003if is_service_enabled tempest; then
4 if [[ "$1" == "source" ]]; then
5 # Initial source
6 source $TOP_DIR/lib/tempest
7 elif [[ "$1" == "stack" && "$2" == "install" ]]; then
8 echo_summary "Installing Tempest"
Dan Smith30d9bf92021-01-19 12:10:52 -08009 async_runfunc install_tempest
Dean Troyercdf3d762013-10-15 09:42:43 -050010 elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
11 # Tempest config must come after layer 2 services are running
Sean Daguec67d22e2016-02-02 05:51:14 -050012 :
Dean Troyercdf3d762013-10-15 09:42:43 -050013 elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
Sam Betts5c391542016-08-10 15:58:27 +010014 # Tempest config must come after all other plugins are run
15 :
16 elif [[ "$1" == "stack" && "$2" == "post-extra" ]]; then
17 # local.conf Tempest option overrides
18 :
19 elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
Dan Smith30d9bf92021-01-19 12:10:52 -080020 async_wait install_tempest
Dean Troyercdf3d762013-10-15 09:42:43 -050021 echo_summary "Initializing Tempest"
Dean Troyer768295e2013-01-09 13:42:03 -060022 configure_tempest
Matthew Treinish7e603d12016-06-01 18:16:14 -040023 echo_summary "Installing Tempest Plugins"
24 install_tempest_plugins
Dean Troyer768295e2013-01-09 13:42:03 -060025 fi
Dean Troyer768295e2013-01-09 13:42:03 -060026
Dean Troyercdf3d762013-10-15 09:42:43 -050027 if [[ "$1" == "unstack" ]]; then
28 # no-op
29 :
30 fi
Dean Troyer768295e2013-01-09 13:42:03 -060031
Dean Troyercdf3d762013-10-15 09:42:43 -050032 if [[ "$1" == "clean" ]]; then
33 # no-op
34 :
35 fi
36fi