acebb28490182e16af2407fff4c81c3694bab3a0
[policy/docker.git] / csit / resources / scripts / setup-apex-pdp.sh
1 #!/bin/bash
2 # ============LICENSE_START=======================================================
3 #  Copyright (C) 2018 Ericsson. All rights reserved.
4 #
5 #  Modifications Copyright (c) 2019-2023 Nordix Foundation.
6 #  Modifications Copyright (C) 2020-2021 AT&T Intellectual Property.
7 #  Modifications Copyright (C) 2021 Bell Canada. All rights reserved.
8 # ================================================================================
9 # Licensed under the Apache License, Version 2.0 (the "License");
10 # you may not use this file except in compliance with the License.
11 # You may obtain a copy of the License at
12 #
13 #      http://www.apache.org/licenses/LICENSE-2.0
14 #
15 # Unless required by applicable law or agreed to in writing, software
16 # distributed under the License is distributed on an "AS IS" BASIS,
17 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 # See the License for the specific language governing permissions and
19 # limitations under the License.
20 #
21 # SPDX-License-Identifier: Apache-2.0
22 # ============LICENSE_END=========================================================
23
24 source "${SCRIPTS}"/setup-pap.sh
25
26 # wait for the app to start up
27 "${SCRIPTS}"/wait_for_rest.sh localhost "${APEX_PORT}"
28
29 export DMAAP_IP="localhost:${DMAAP_PORT}"
30 export SUITES="apex-pdp-test.robot"
31
32 ROBOT_VARIABLES="${ROBOT_VARIABLES} -v APEX_IP:localhost:${APEX_PORT} -v DMAAP_IP:${DMAAP_IP}
33 -v APEX_EVENTS_IP:localhost:${APEX_EVENTS_PORT}"