c67d22e2ed
For testing reasons it's typically very useful to have a second non admin user to cross check that it can't do a thing to the first user. It was useful enough we always created it with tempest (though we didn't always use it). This makes devstack always create an alt_demo user, which is available in occ as devstack-alt. This will help us unwind some of the keystone v3 breaks with functional tests using keystone cli to build this second user. Change-Id: Iaaf02469180563e2d8c413fee0ee66ada2296cfa
31 lines
831 B
Bash
31 lines
831 B
Bash
# tempest.sh - DevStack extras script
|
|
|
|
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"
|
|
install_tempest
|
|
elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then
|
|
# Tempest config must come after layer 2 services are running
|
|
:
|
|
elif [[ "$1" == "stack" && "$2" == "extra" ]]; then
|
|
echo_summary "Initializing Tempest"
|
|
configure_tempest
|
|
elif [[ "$1" == "stack" && "$2" == "post-extra" ]]; then
|
|
# local.conf Tempest option overrides
|
|
:
|
|
fi
|
|
|
|
if [[ "$1" == "unstack" ]]; then
|
|
# no-op
|
|
:
|
|
fi
|
|
|
|
if [[ "$1" == "clean" ]]; then
|
|
# no-op
|
|
:
|
|
fi
|
|
fi
|