74bfb0c5a4f07de81c24dae4445d2b70d5f7f203
[integration/csit.git] / plans / dmaap-buscontroller / with_mr / setup.sh
1 #!/bin/bash
2
3 # ============LICENSE_START=======================================================
4 # org.onap.dmaap
5 # ================================================================================
6 # Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
7 # ================================================================================
8 # Licensed under the Apache License, Version 2.0 (the "License");
9 # you may not use this file except in compliance with the License.
10 # You may obtain a copy of the License at
11
12 #      http://www.apache.org/licenses/LICENSE-2.0
13
14 # Unless required by applicable law or agreed to in writing, software
15 # distributed under the License is distributed on an "AS IS" BASIS,
16 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 # See the License for the specific language governing permissions and
18 # limitations under the License.
19 # ============LICENSE_END=========================================================
20
21 #
22 # Place the scripts in run order:
23 source ${WORKSPACE}/scripts/dmaap-message-router/dmaap-mr-launch.sh
24 dmaap_mr_launch
25 MRC_IP=${IP}
26
27 mkdir -p ${WORKSPACE}/archives/dmaapmr/last_run_logs
28
29 source ${WORKSPACE}/scripts/dmaap-buscontroller/dmaapbc-launch.sh
30 dmaapbc_launch $MRC_IP
31 DMAAP_BC_IP=${DMAAP_BC_IP}
32
33 echo "DMAAP_BC_IP=$DMAAP_BC_IP"
34
35 # Pass any variables required by Robot test suites in ROBOT_VARIABLES
36 ROBOT_VARIABLES=" -v DMAAP_BC_IP:${DMAAP_BC_IP}"
37 set -x
38 ${WORKSPACE}/scripts/dmaap-buscontroller/dmaapbc-init.sh ${DMAAP_BC_IP}
39 set +x