Use $FLOATING_NETWORK_NAME instead of "public" 85/29585/3
authorbryan <bryan.sullivan@att.com>
Wed, 1 Mar 2017 23:54:15 +0000 (15:54 -0800)
committerbryan <bryan.sullivan@att.com>
Thu, 2 Mar 2017 00:21:18 +0000 (16:21 -0800)
JIRA: MODELS-23
Fix config drive test
Verified on apex virtual deployment.

Change-Id: Ic719af13cf2edb1cb2183dbeeaec298887e89bf2
Signed-off-by: bryan <bryan.sullivan@att.com>
tests/vHello_Tacker.sh

index 4374f7a..aee8442 100644 (file)
@@ -262,7 +262,7 @@ start() {
 
   echo "$0: $(date) associate floating IP"
   get_floating_net
-  FIP=$(nova floating-ip-create $FLOATING_NETWORK_NAME | awk "/public/ { print \$4 }")
+  FIP=$(nova floating-ip-create $FLOATING_NETWORK_NAME | awk "/$FLOATING_NETWORK_NAME/ { print \$4 }")
   nova floating-ip-associate $SERVER_ID $FIP
   # End setup for workarounds
 
@@ -289,7 +289,11 @@ start() {
 
   echo "$0: $(date) verify contents of config drive are included in web page"
   id=$(curl $SERVER_URL | awk "/uuid/ { print \$2 }")
-  assert "models-tacker-vnfd-001 (config_drive creation)" [[ ! -z "$id" ]]
+  if [[ ! -z $id ]]; then
+    assert "models-tacker-vnfd-001 (config_drive creation)" true
+  else
+    assert "models-tacker-vnfd-001 (config_drive creation)" false
+  fi
 }
 
 stop() {