aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/scripts/optf-has/has/has_script.sh
diff options
context:
space:
mode:
authorLeonardo Bellini <leonardo.bellini@att.com>2018-04-12 08:42:51 -0500
committerLeonardo Bellini <leonardo.bellini@att.com>2018-04-12 08:43:06 -0500
commit25c75c732f253aa18b510f62a00eec3e6d7d55bd (patch)
tree9196a12ac6f6b0b1b702bd9834d332523323b503 /test/csit/scripts/optf-has/has/has_script.sh
parent47b9fd2fede0ba2840297fcb4dea1e5e5deaa96a (diff)
Add multicloud sim
Issue-ID: OPTFRA-212 Change-Id: Ice56b185857fc88b298c14dcce359289635b1db3 Signed-off-by: Leonardo Bellini <leonardo.bellini@att.com>
Diffstat (limited to 'test/csit/scripts/optf-has/has/has_script.sh')
-rwxr-xr-xtest/csit/scripts/optf-has/has/has_script.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/csit/scripts/optf-has/has/has_script.sh b/test/csit/scripts/optf-has/has/has_script.sh
index ed0f48838..ac907eea1 100755
--- a/test/csit/scripts/optf-has/has/has_script.sh
+++ b/test/csit/scripts/optf-has/has/has_script.sh
@@ -56,6 +56,12 @@ echo "AAISIM_IP=${AAISIM_IP}"
# change AAI reference to the local instance
sed -i -e "s%localhost:8081/%${AAISIM_IP}:8081/%g" /tmp/conductor/properties/conductor.conf
+MULTICLOUDSIM_IP=`docker inspect --format '{{ .NetworkSettings.Networks.bridge.IPAddress}}' multicloudsim`
+echo "MULTICLOUDSIM_IP=${MULTICLOUDSIM_IP}"
+
+# change MULTICLOUD reference to the local instance
+sed -i -e "s%localhost:8082/%${MULTICLOUDSIM_IP}:8082/%g" /tmp/conductor/properties/conductor.conf
+
#onboard conductor into music
curl -vvvvv --noproxy "*" --request POST http://${MUSIC_IP}:8080/MUSIC/rest/v2/admin/onboardAppWithMusic -H "Content-Type: application/json" --data @${WORKSPACE}/test/csit/tests/optf-has/has/data/onboard.json