Fix functional tests

* Use an ASCII name for the VM name to workaround a Nova bug.
* Pass --os-domain-id parameter to ospurge to purge the
  invisible_to_admin project

Related-Bug: #1730756
Change-Id: Ie1507a3564d1d8919148228fa647be63e725c7bc
This commit is contained in:
Victor Stinner 2017-11-07 22:53:18 +01:00
parent 36cf3d9c29
commit 90642dd2ec
2 changed files with 11 additions and 3 deletions

View File

@ -125,7 +125,12 @@ tox -e run -- --os-cloud devstack --purge-own-project --verbose # purges demo/de
source $DEVSTACK_DIR/openrc demo invisible_to_admin
assert_compute && assert_network && assert_volume
tox -e run -- --os-auth-url http://localhost/identity --os-username demo --os-project-name invisible_to_admin --os-password $invisible_to_admin_demo_pass --purge-own-project --verbose
tox -e run -- \
--os-auth-url http://localhost/identity \
--os-username demo --os-project-name invisible_to_admin \
--os-password $invisible_to_admin_demo_pass \
--os-domain-id=$OS_PROJECT_DOMAIN_ID \
--purge-own-project --verbose
#source $DEVSTACK_DIR/openrc alt_demo alt_demo
#assert_compute && assert_network && assert_volume

View File

@ -57,8 +57,11 @@ function wait_for_volume_to_be_available {
# Check if needed environment variable OS_PROJECT_NAME is set and non-empty.
: "${OS_PROJECT_NAME:?Need to set OS_PROJECT_NAME non-empty}"
# Some random UUID + Unicode characters
UUID="$(cat /proc/sys/kernel/random/uuid)"
# Some random UUID
# Commented to workaround a nova #1730756 with non-ASCII VM name:
# https://bugs.launchpad.net/nova/+bug/1730756
#UUID="♫$(cat /proc/sys/kernel/random/uuid)✓"
UUID="$(cat /proc/sys/kernel/random/uuid)"
# Name of external network
EXTNET_NAME=${EXTNET_NAME:-public}
# Name of flavor used to spawn a VM