aboutsummaryrefslogtreecommitdiffstats
path: root/test/csit/plans/vnfsdk-marketplace/sanity-check/setup.sh
diff options
context:
space:
mode:
authorMurali-P <murali.p@huawei.com>2017-08-03 18:08:44 +0530
committerMurali-P <murali.p@huawei.com>2017-08-03 18:08:44 +0530
commitb73e6141c5f03f95cd39c6f1b8d44908f35b9467 (patch)
tree38323fc0daf7687de5a90d84d3a54ec71be2ffde /test/csit/plans/vnfsdk-marketplace/sanity-check/setup.sh
parent0146bff780af110d4183de8178ebdf7537545239 (diff)
Initial CSIT test case
Resolved:VNFSDK-53 VNF SDK market place Change-Id: Idffd5e7ee278f806b793eac4632d4f951c742bf4 Signed-off-by: Murali-P <murali.p@huawei.com>
Diffstat (limited to 'test/csit/plans/vnfsdk-marketplace/sanity-check/setup.sh')
-rw-r--r--test/csit/plans/vnfsdk-marketplace/sanity-check/setup.sh48
1 files changed, 48 insertions, 0 deletions
diff --git a/test/csit/plans/vnfsdk-marketplace/sanity-check/setup.sh b/test/csit/plans/vnfsdk-marketplace/sanity-check/setup.sh
new file mode 100644
index 000000000..86d7ce61b
--- /dev/null
+++ b/test/csit/plans/vnfsdk-marketplace/sanity-check/setup.sh
@@ -0,0 +1,48 @@
+#!/bin/bash
+#
+# Copyright 2016-2017 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# These scripts are sourced by run-csit.sh.
+
+source ${SCRIPTS}/common_functions.sh
+
+# Start MSB
+${SCRIPTS}/common-services-microservice-bus/startup.sh i-msb
+MSB_IP=`get-instance-ip.sh i-msb`
+curl_path='http://'${MSB_IP}'/openoui/microservices/index.html'
+sleep_msg="Waiting_connection_for_url_for:i-msb"
+wait_curl_driver CURL_COMMAND=$curl_path WAIT_MESSAGE='"$sleep_msg"' GREP_STRING="org_openo_msb_route_title" REPEAT_NUMBER="15"
+
+
+#Start market place
+docker run -d -i -t --name=marketplace -e MSB_ADDR=$MSB_IP -p 8702:8702 openoint/vnf-sdk-marketplace
+
+# Start vnfsdk
+docker run -d -i -t --name=functest -e MSB_ADDR=$MSB_IP -p 8701:8701 openoint/vnfsdk-function-test
+
+#Start catalogue, aria
+docker run -d -i -t --name=catalog -e MSB_ADDR=$MSB_IP -p 8200:8200 -p 8201:8201 openoint/common-tosca-catalog
+
+docker run -d -i -t --name=aria -e MSB_ADDR=$MSB_IP -p 8204:8204 openoint/common-tosca-aria
+
+
+
+echo SCRIPTS
+
+# Pass any variables required by Robot test suites in ROBOT_VARIABLES
+ROBOT_VARIABLES="-v MSB_IP:${MSB_IP} -v SCRIPTS:${SCRIPTS}"
+
+# Run Mock server
+run_robottestlib \ No newline at end of file