DevStack plugin set tempest options in test-config section

TEMPEST_CONFIG options should be set in the test-config section,
otherwise they get overridden.

Also adds the creator role to the tempest user.

Change-Id: I6816c1b699e140600e5bb47a251cd0788125f8d0
This commit is contained in:
Kaitlin Farr 2017-05-23 13:12:59 -04:00
parent 83e3cec08f
commit eb18c70d3b

View File

@ -1,6 +1,7 @@
# Configure the needed tempest options
function configure_barbican_tempest() {
iniset $TEMPEST_CONFIG service_available barbican True
iniset $TEMPEST_CONFIG auth tempest_roles creator
}
# check for service enabled
@ -44,15 +45,16 @@ if is_service_enabled barbican; then
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
echo_summary "Initializing Barbican"
init_barbican
if is_service_enabled tempest; then
echo_summary "Configuring Tempest options for Barbican"
configure_barbican_tempest
fi
start_barbican
if is_service_enabled pykmip-server; then
echo_summary "Starting PyKMIP server"
start_pykmip
fi
elif [[ "$1" == "stack" && "$2" == "test-config" ]]; then
if is_service_enabled tempest; then
echo_summary "Configuring Tempest options for Barbican"
configure_barbican_tempest
fi
fi
if [[ "$1" == "unstack" ]]; then