summaryrefslogtreecommitdiffstats
path: root/test/csit
diff options
context:
space:
mode:
authorDaniel Silverthorn <daniel.silverthorn@amdocs.com>2017-08-18 16:49:16 -0400
committerDaniel Silverthorn <daniel.silverthorn@amdocs.com>2017-08-18 16:49:28 -0400
commitb4a8446204526721256f40f837ccf51706495c82 (patch)
tree235197b0b6e97af256d4512f09ae191cca7e21ad /test/csit
parent9c47b8a0659920547f439c1060e7a408948a4096 (diff)
[AAI-158] Remove hard-coded ip
Change-Id: I9068dc94719b9af0edb808519301af3626ae46ef Signed-off-by: Daniel Silverthorn <daniel.silverthorn@amdocs.com>
Diffstat (limited to 'test/csit')
-rw-r--r--test/csit/plans/aai/search-data-service/setup.sh3
-rw-r--r--test/csit/tests/aai/search-data-service/suite1/test1.robot2
2 files changed, 4 insertions, 1 deletions
diff --git a/test/csit/plans/aai/search-data-service/setup.sh b/test/csit/plans/aai/search-data-service/setup.sh
index df50fed16..60703b657 100644
--- a/test/csit/plans/aai/search-data-service/setup.sh
+++ b/test/csit/plans/aai/search-data-service/setup.sh
@@ -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`"
+
diff --git a/test/csit/tests/aai/search-data-service/suite1/test1.robot b/test/csit/tests/aai/search-data-service/suite1/test1.robot
index db05f83b7..86554a13a 100644
--- a/test/csit/tests/aai/search-data-service/suite1/test1.robot
+++ b/test/csit/tests/aai/search-data-service/suite1/test1.robot
@@ -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}