Force running Functest vs public endpoints 62/68462/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Tue, 10 Sep 2019 09:29:24 +0000 (11:29 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Tue, 10 Sep 2019 09:36:27 +0000 (11:36 +0200)
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 <cedric.ollivier@orange.com>
Change-Id: I9933316479d1830d3f37dcae19940be0c8f185b1

tools/test.sh

index e9d9158..3bd16b7 100755 (executable)
@@ -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
-