From 13e4d4c8585f2f402d3d0251b45fcee38624a9cb Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Tue, 10 Sep 2019 11:29:24 +0200 Subject: Force running Functest vs public endpoints MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tools/test.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tools/test.sh') 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 - -- cgit 1.2.3-korg