2013-01-09 13:42:03 -06:00
|
|
|
# tempest.sh - DevStack extras script
|
|
|
|
|
2013-10-15 09:42:43 -05:00
|
|
|
if is_service_enabled tempest; then
|
|
|
|
if [[ "$1" == "source" ]]; then
|
|
|
|
# Initial source
|
|
|
|
source $TOP_DIR/lib/tempest
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "install" ]]; then
|
|
|
|
echo_summary "Installing Tempest"
|
2013-01-09 13:42:03 -06:00
|
|
|
install_tempest
|
2013-10-15 09:42:43 -05:00
|
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
|
|
# Tempest config must come after layer 2 services are running
|
2016-02-02 05:51:14 -05:00
|
|
|
:
|
2013-10-15 09:42:43 -05:00
|
|
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
2016-08-10 15:58:27 +01:00
|
|
|
# Tempest config must come after all other plugins are run
|
|
|
|
:
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "post-extra" ]]; then
|
|
|
|
# local.conf Tempest option overrides
|
|
|
|
:
|
|
|
|
elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
|
2013-10-15 09:42:43 -05:00
|
|
|
echo_summary "Initializing Tempest"
|
2013-01-09 13:42:03 -06:00
|
|
|
configure_tempest
|
2016-06-01 18:16:14 -04:00
|
|
|
echo_summary "Installing Tempest Plugins"
|
|
|
|
install_tempest_plugins
|
2013-01-09 13:42:03 -06:00
|
|
|
fi
|
|
|
|
|
2013-10-15 09:42:43 -05:00
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
|
|
# no-op
|
|
|
|
:
|
|
|
|
fi
|
2013-01-09 13:42:03 -06:00
|
|
|
|
2013-10-15 09:42:43 -05:00
|
|
|
if [[ "$1" == "clean" ]]; then
|
|
|
|
# no-op
|
|
|
|
:
|
|
|
|
fi
|
|
|
|
fi
|