Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 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 | |
| 23 | source ${SCRIPTS}/common_functions.sh |
| 24 | |
| 25 | |
| 26 | if [ "$USE_EXISTING_DMAAP" = "Y" ] |
| 27 | then |
| 28 | ROBOT_VARIABLES="-v AAF_IP:0.0.0 -v MRC_IP:0.0.0.0 -v DRPS_IP:172.17.0.3 -v DMAAPBC_IP:172.17.0.4" |
| 29 | else |
| 30 | |
| 31 | # Place the scripts in run order: |
Gary Wu | 13111e9 | 2018-09-27 11:31:33 -0700 | [diff] [blame] | 32 | source ${WORKSPACE}/scripts/dmaap-buscontroller/dr-launch.sh |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 33 | dmaap_dr_launch |
| 34 | DRPS_IP=${IP} |
| 35 | |
Gary Wu | 13111e9 | 2018-09-27 11:31:33 -0700 | [diff] [blame] | 36 | #source ${WORKSPACE}/scripts/dmaap-buscontroller/start-mock.sh |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 37 | #start_mock "aaf" |
| 38 | #AAF_IP=${IP} |
| 39 | AAF_IP=0.0.0.0 |
| 40 | #start_mock "drps" |
| 41 | #DRPS_IP=${IP} |
| 42 | MRC_IP=0.0.0.0 |
| 43 | |
Gary Wu | 13111e9 | 2018-09-27 11:31:33 -0700 | [diff] [blame] | 44 | source ${WORKSPACE}/scripts/dmaap-buscontroller/dmaapbc-launch.sh |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 45 | dmaapbc_launch $AAF_IP $MRC_IP $DRPS_IP |
| 46 | DMAAPBC_IP=${IP} |
| 47 | |
| 48 | |
| 49 | echo "AAF_IP=$AAF_IP MRC_IP=$MRC_IP DRPS_IP=$DRPS_IP DMAAPBC_IP=$DMAAPBC_IP" |
| 50 | |
| 51 | # Pass any variables required by Robot test suites in ROBOT_VARIABLES |
| 52 | ROBOT_VARIABLES="-v AAF_IP:${AAF_IP} -v MRC_IP:${MRC_IP} -v DRPS_IP:${DRPS_IP} -v DMAAPBC_IP:${DMAAPBC_IP}" |
| 53 | set -x |
Gary Wu | 13111e9 | 2018-09-27 11:31:33 -0700 | [diff] [blame] | 54 | ${WORKSPACE}/scripts/dmaap-buscontroller/dmaapbc-init.sh ${DMAAPBC_IP} ${DRPS_IP} ${MRC_IP} https |
Gary Wu | 9abb61c | 2018-09-27 10:38:50 -0700 | [diff] [blame] | 55 | set +x |
| 56 | fi |
| 57 | |