diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2017-08-25 22:22:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-08-25 22:22:25 +0000 |
commit | fe0546b6b857d76d092ff495713f29c611e5d0ea (patch) | |
tree | fa4ab285a8454965b612c50ba9c3f4a9ae3070e9 /test/csit/plans/multivim/functionality1/setup.sh | |
parent | edc947fbf559172bdd6bed1d6de57c188062514a (diff) | |
parent | 0a0dd940dbbd84371c15a4eefed0b34692231a9a (diff) |
Merge "Modify MultiCloud CSIT case"
Diffstat (limited to 'test/csit/plans/multivim/functionality1/setup.sh')
-rwxr-xr-x | test/csit/plans/multivim/functionality1/setup.sh | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/test/csit/plans/multivim/functionality1/setup.sh b/test/csit/plans/multivim/functionality1/setup.sh index df8113f34..b43f4b856 100755 --- a/test/csit/plans/multivim/functionality1/setup.sh +++ b/test/csit/plans/multivim/functionality1/setup.sh @@ -17,18 +17,24 @@ # Place the scripts in run order: # Start all process required for executing test case -source ${SCRIPTS}/common_functions.sh +# start msb +# Replace this when msb is ready for onap +docker run -d --name i-msb -p 80:80 openoint/common-services-msb +MSB_IP=`get-instance-ip.sh i-msb` + +# start esr +# docker run -d --name i-esr -e MSB_ADDR=${MSB_IP}:80 openoint/common-services-extsys # start multivim-broker -run-instance.sh openoint/multivim-broker multivim-broker " -i -t -e MSB_ADDR=${MSB_IP}:80" -extsys_ip=`get-instance-ip.sh multivim-broker` -sleep_msg="Waiting_for_multivim-broker" -curl_path='http://'${MSB_IP}':80/openoapi/multivim/v1/swagger.json' -wait_curl_driver CURL_COMMAND=$curl_path WAIT_MESSAGE='"$sleep_msg"' REPEAT_NUMBER=25 GREP_STRING="swagger" +# Replace this when multivim-broker container is ready +docker run -d --name multivim-broker -e MSB_ADDR=${MSB_IP}:80 openoint/multivim-broker +BROKER_IP=`get-instance-ip.sh multivim-broker` +for i in {1..50}; do + curl -sS ${BROKER_IP}:9001 && break + echo sleep $i + sleep $i +done echo SCRIPTS # Pass any variables required by Robot test suites in ROBOT_VARIABLES -ROBOT_VARIABLES="-v MSB_IP:${MSB_IP} -v SCRIPTS:${SCRIPTS}" - - - +ROBOT_VARIABLES="-v MSB_IP:${MSB_IP}" |