blob: 3b604fe9921e29ed351c86bcab8ede69c57e32be [file] [log] [blame]
Dominic Lunanuova9dc8b5f2018-04-14 01:33:15 +00001#!/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
Dominic Lunanuovadb5f9892018-04-20 18:54:47 +000023if [ "$USE_EXISTING_DMAAP" = "Y" ]
24then
25 ROBOT_VARIABLES="-v AAF_IP:0.0.0 -v MRC_IP:172.18.0.3 -v DRPS_IP:0.0.0.0 -v DMAAPBC_IP:172.17.0.4"
26else
Dominic Lunanuova9dc8b5f2018-04-14 01:33:15 +000027
Dominic Lunanuovadb5f9892018-04-20 18:54:47 +000028 # Place the scripts in run order:
29 source ${WORKSPACE}/test/csit/scripts/dmaap-message-router/dmaap-mr-launch.sh
30 dmaap_mr_launch
31 MRC_IP=${IP}
Dominic Lunanuova9dc8b5f2018-04-14 01:33:15 +000032
Dominic Lunanuovadb5f9892018-04-20 18:54:47 +000033 source ${WORKSPACE}/test/csit/scripts/dmaap-buscontroller/start-mock.sh
34 #start_mock "aaf"
35 #AAF_IP=${IP}
36 AAF_IP=0.0.0.0
37 #start_mock "drps"
38 #DRPS_IP=${IP}
39 DRPS_IP=0.0.0.0
Dominic Lunanuova9dc8b5f2018-04-14 01:33:15 +000040
Dominic Lunanuovadb5f9892018-04-20 18:54:47 +000041 source ${WORKSPACE}/test/csit/scripts/dmaap-buscontroller/dmaapbc-launch.sh
42 dmaapbc_launch $AAF_IP $MRC_IP $DRPS_IP
43 DMAAPBC_IP=${IP}
Dominic Lunanuova9dc8b5f2018-04-14 01:33:15 +000044
45
Dominic Lunanuovadb5f9892018-04-20 18:54:47 +000046 echo "AAF_IP=$AAF_IP MRC_IP=$MRC_IP DRPS_IP=$DRPS_IP DMAAPBC_IP=$DMAAPBC_IP"
Dominic Lunanuova9dc8b5f2018-04-14 01:33:15 +000047
Dominic Lunanuovadb5f9892018-04-20 18:54:47 +000048 # Pass any variables required by Robot test suites in ROBOT_VARIABLES
49 ROBOT_VARIABLES="-v AAF_IP:${AAF_IP} -v MRC_IP:${MRC_IP} -v DRPS_IP:${DRPS_IP} -v DMAAPBC_IP:${DMAAPBC_IP}"
50 set -x
51 ${WORKSPACE}/test/csit/scripts/dmaap-buscontroller/dmaapbc-init.sh ${DMAAPBC_IP} ${DRPS_IP} ${MRC_IP}
52 set +x
53fi
Dominic Lunanuova9dc8b5f2018-04-14 01:33:15 +000054