Chore: Add gerrit maven verify GHA workflow
[sdnc/oam.git] / csit / plans / sdnr / setup.sh
1 #!/bin/bash
2 #
3 # Copyright 2016-2017 Huawei 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 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16 #
17 # Modifications copyright (c) 2017 AT&T Intellectual Property
18 # Modifications copyright (c) 2022 highstreet technologies GmbH Property
19 #
20
21 # Remove all not needed images and clean workspace
22 sudo apt clean
23 docker rmi -f $(docker images onap/sdnc-dmaap-listener-image -a -q)
24 docker rmi -f $(docker images onap/sdnc-ueb-listener-image -a -q)
25 docker rmi -f $(docker images onap/onap/sdnc-web-image -a -q)
26 docker rmi -f $(docker images onap/sdnc-ansible-server-image -a -q)
27 docker rmi -f $(docker images onap/sdnc-aaf-image -a -q)
28 docker rmi -f $(docker images onap/ccsdk-ansible-server-image -a -q)
29 docker rmi -f $(docker images onap/ccsdk-odlsli-alpine-image -a -q)
30 docker images
31
32 echo "Start plan sdnr"
33
34 source ${WORKSPACE}/scripts/sdnr/sdnr-launch.sh
35 onap_dependent_components_launch
36 nts_networkfunctions_launch ${WORKSPACE}/plans/sdnr/testdata/nts-networkfunctions.csv
37 sdnr_web_launch
38
39 ## environment for SDNC/R specific robot test runs
40 ## Ready state will be checked every SDNC_READY_RETRY_PERIOD seconds
41 # SDNC_READY_RETRY_PERIOD=15
42 ## SDNC ready state will be checked max SDNC_READY_TIMEOUT seconds
43 # SDNC_READY_TIMEOUT=450
44
45 ## if jenkins should be ok without running robots TCS's
46 #SDNC_RELEASE_WITHOUT_ROBOT=true
47
48 #Pass any variables required by Robot test suites in ROBOT_VARIABLES
49 ROBOT_DEBUG_LEVEL=DEBUG # INFO or DEBUG
50
51 ROBOT_VARIABLES="--variablefile=${WORKSPACE}/plans/sdnr/testdata/localhost.py -L ${ROBOT_DEBUG_LEVEL}"
52 ROBOT_IMAGE="hightec/sdnc-test-lib:v0.12.0"
53