Fill tempest.conf with Sahara-specific values

Initialize tempest.conf with the set of available plugins.

Change-Id: I1e963fe4110b94c1e4f18134e0a908ff309cd4e5
(cherry picked from commit cad6b79f9d)
This commit is contained in:
Luigi Toscano 2016-09-16 18:32:33 +02:00
parent 47579eec40
commit 5c775d2e84
1 changed files with 11 additions and 0 deletions

View File

@ -208,6 +208,14 @@ function start_sahara {
fi
}
# configure_tempest_for_sahara() - Tune Tempest configuration for Sahara
function configure_tempest_for_sahara {
if is_service_enabled tempest; then
iniset $TEMPEST_CONFIG service_available sahara True
iniset $TEMPEST_CONFIG data-processing-feature-enabled plugins $SAHARA_ENABLED_PLUGINS
fi
}
# stop_sahara() - Stop running processes
function stop_sahara {
# Kill the Sahara screen windows
@ -242,6 +250,9 @@ if is_service_enabled sahara; then
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
echo_summary "Initializing sahara"
start_sahara
elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
echo_summary "Configuring tempest"
configure_tempest_for_sahara
fi
if [[ "$1" == "unstack" ]]; then