blob: 328329f235beaae45b3598854f418f3dd5b432ba [file] [log] [blame]
Liexiang Yue33394352019-03-06 15:01:11 +08001#!/bin/bash
2#
3# Copyright (c) 2019, CMCC Technologies Co., Ltd.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at:
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
14#
15# Place the scripts in run order:
16# Start all process required for executing test case
17
18source ${SCRIPTS}/common_functions.sh
umry8364b3fa8ee2019-10-01 11:16:49 +020019MULTICLOUD_DOCKER_VERSION=1.4.1
Liexiang Yue33394352019-03-06 15:01:11 +080020# start multicloud-fcaps
umry8364b3fa8ee2019-10-01 11:16:49 +020021docker run -d --name multicloud-fcaps nexus3.onap.org:10001/onap/multicloud/openstack-fcaps:$MULTICLOUD_DOCKER_VERSION
Liexiang Yue33394352019-03-06 15:01:11 +080022SERVICE_IP=`get-instance-ip.sh multicloud-fcaps`
23SERVICE_PORT=9011
24
25for i in {1..50}; do
26 curl -sS ${SERVICE_IP}:${SERVICE_PORT} && break
27 echo sleep $i
28 sleep $i
29done
30
31echo SCRIPTS
32# Pass any variables required by Robot test suites in ROBOT_VARIABLES
33ROBOT_VARIABLES+="-v SERVICE_IP:${SERVICE_IP} "
34ROBOT_VARIABLES+="-v SERVICE_PORT:${SERVICE_PORT} "