From: Nikolas Hermanns Date: Wed, 11 Jan 2017 12:18:57 +0000 (+0100) Subject: [FUNCTEST] Correct right ip is used for public endpoint X-Git-Tag: danube.1.RC1~203^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=a4024e43c35e2c319c73b5730c94f02d80145e90;p=functest.git [FUNCTEST] Correct right ip is used for public endpoint At the moment it was done in a fishy way to grep for the public ip. This commit fixes it. Change-Id: If14488c18c67cd66e885a7376e1c50a3a28e17f7 Signed-off-by: Nikolas Hermanns --- diff --git a/functest/ci/check_os.sh b/functest/ci/check_os.sh index 053796d98..e2471026c 100755 --- a/functest/ci/check_os.sh +++ b/functest/ci/check_os.sh @@ -24,7 +24,7 @@ fi echo "Checking OpenStack endpoints:" -publicURL=$OS_AUTH_URL +publicURL=$(openstack catalog show identity |awk '/public/ {print $4}') publicIP=$(echo $publicURL|sed 's/^.*http\:\/\///'|sed 's/.[^:]*$//') publicPort=$(echo $publicURL|sed 's/^.*://'|sed 's/\/.*$//') echo ">>Verifying connectivity to the public endpoint $publicIP:$publicPort..."