[AAI-158] Remove hard-coded ip 33/8033/1
authorDaniel Silverthorn <daniel.silverthorn@amdocs.com>
Fri, 18 Aug 2017 20:49:16 +0000 (16:49 -0400)
committerDaniel Silverthorn <daniel.silverthorn@amdocs.com>
Fri, 18 Aug 2017 20:49:28 +0000 (16:49 -0400)
Change-Id: I9068dc94719b9af0edb808519301af3626ae46ef
Signed-off-by: Daniel Silverthorn <daniel.silverthorn@amdocs.com>
test/csit/plans/aai/search-data-service/setup.sh
test/csit/tests/aai/search-data-service/suite1/test1.robot

index df50fed..60703b6 100644 (file)
@@ -32,3 +32,6 @@ docker-compose -f docker-compose.yml up -d aai.searchservice.simpledemo.openecom
 
 echo sleeping for 10 seconds while services start up
 sleep 10
+
+ROBOT_VARIABLES="-v HOST_IP:`ip addr show docker0 | head -3 | tail -1 | cut -d' ' -f6 | cut -d'/' -f1`"
+
index db05f83..86554a1 100644 (file)
@@ -4,7 +4,7 @@ Library       RequestsLibrary
 Library       requests
 
 *** Variables ***
-${TARGETURL}  https://10.147.124.100:9509/services/search-data-service/v1/search/indexes/test-index3
+${TARGETURL}  https://${HOST_IP}:9509/services/search-data-service/v1/search/indexes/test-index3
 ${INDEXDATA}  {"fields": [{"name": "Name", "data-type": "string"}, {"name": "Number", "data-type": "long"}]}
 ${DOCUMENTDATA}  {"Name": "A", "Number": 5}