summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbryan <bryan.sullivan@att.com>2017-03-01 15:54:15 -0800
committerbryan <bryan.sullivan@att.com>2017-03-01 16:21:18 -0800
commit23c5d5b0f5d52c8eefb69129bc1bf878eb40f679 (patch)
tree37473c22c4934b4a350c8f0d87fedfd75c8dc1d4
parent54a688229598c65da800301c65f17e35fb5c26c4 (diff)
Use $FLOATING_NETWORK_NAME instead of "public"
JIRA: MODELS-23 Fix config drive test Verified on apex virtual deployment. Change-Id: Ic719af13cf2edb1cb2183dbeeaec298887e89bf2 Signed-off-by: bryan <bryan.sullivan@att.com>
-rw-r--r--tests/vHello_Tacker.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/vHello_Tacker.sh b/tests/vHello_Tacker.sh
index 4374f7a..aee8442 100644
--- a/tests/vHello_Tacker.sh
+++ b/tests/vHello_Tacker.sh
@@ -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() {