[FUNCTEST] Correct right ip is used for public endpoint 75/26875/1
authorNikolas Hermanns <nikolas.hermanns@ericsson.com>
Wed, 11 Jan 2017 12:18:57 +0000 (13:18 +0100)
committerNikolas Hermanns <nikolas.hermanns@ericsson.com>
Wed, 11 Jan 2017 12:18:57 +0000 (13:18 +0100)
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 <nikolas.hermanns@ericsson.com>
functest/ci/check_os.sh

index 053796d..e247102 100755 (executable)
@@ -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..."