From: Cédric Ollivier Date: Tue, 10 Sep 2019 09:29:24 +0000 (+0200) Subject: Force running Functest vs public endpoints X-Git-Tag: opnfv-9.0.0~40 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F62%2F68462%2F1;p=airship.git Force running Functest vs public endpoints It sets OS_INTERFACE to force the use of public endpoints as the internal and management endpoints are unreachable from jumphost. It also sets OS_REGION_NAME to avoid the fallback mechanism in tempest selecting the first endpoint listed in catalog (here internal) [1] EXTERNAL_NETWORK is defined to allow running Functest testcases in parallel. [1] https://github.com/openstack/tempest/blob/21.0.0/tempest/lib/auth.py#L583 Signed-off-by: Cédric Ollivier Change-Id: I9933316479d1830d3f37dcae19940be0c8f185b1 --- diff --git a/tools/test.sh b/tools/test.sh index e9d9158..3bd16b7 100755 --- a/tools/test.sh +++ b/tools/test.sh @@ -13,16 +13,20 @@ cd $TMP_DIR trap "{ sudo rm -rf $TMP_DIR; }" EXIT -touch env +cat > env << EOF +EXTERNAL_NETWORK=public +EOF cat > openstack.creds << EOF -export OS_AUTH_URL='http://identity-airship.intel-pod17.opnfv.org:80/v3' +export OS_AUTH_URL=http://identity-airship.intel-pod17.opnfv.org:80/v3 export OS_USER_DOMAIN_NAME=default export OS_PROJECT_DOMAIN_NAME=default export OS_USERNAME=admin export OS_PROJECT_NAME=admin export OS_PASSWORD=password123 export OS_IDENTITY_API_VERSION=3 +export OS_INTERFACE=public +export OS_REGION_NAME=intel-pod17 EOF # check/download images @@ -63,4 +67,3 @@ case "$1" in exit 1 ;; esac -