diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-09-10 11:29:24 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-09-10 11:36:27 +0200 |
commit | 13e4d4c8585f2f402d3d0251b45fcee38624a9cb (patch) | |
tree | c9e37e2bfb430b3d950b86b1f286b44072e01031 /tools | |
parent | 7a21b3459a26e12fd7fbef81ea2ec8f71605dd71 (diff) |
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 <cedric.ollivier@orange.com>
Change-Id: I9933316479d1830d3f37dcae19940be0c8f185b1
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/test.sh | 9 |
1 files changed, 6 insertions, 3 deletions
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 - |