Merge "Drools-apps CSIT randomly fails deploying policies"
[integration/csit.git] / plans / usecases / 5G-bulkpm / README.txt
1 ###################################################################################################################
2 By executing the below commands it will change the CSIT test from executing on a docker envirnoment to an ONAP one.
3 ###################################################################################################################
4
5 1) Login to an ONAP instance, switch user and verify that the command kubectl executes before proceeding .
6 # sudo -s
7 # kubectl get svc -n onap| grep dcae
8
9 2) Clone the csit repositry 
10 # git clone https://gerrit.onap.org/r/integration/csit
11
12 3) Install docker-compose 
13 # sudo apt-get update
14 # sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
15 # sudo chmod +x /usr/local/bin/docker-compose
16 # docker-compose --version    
17
18 4) Install the packages required for the RobotFramework.                
19 # apt install python-pip
20 # sudo apt install python-pip virtualenv unzip sshuttle netcat libffi-dev libssl-dev
21 # sudo pip install robotframework
22 # sudo pip install -U requests
23 # sudo pip install -U robotframework-requests
24
25 5) Expose the Ves-collector
26 # kubectl expose svc dcae-ves-collector --type=LoadBalancer --name=vesc -n onap
27         service "vesc" exposed
28
29 6) Verify the Ves-collector is exposed
30 # kubectl get svc -n onap | grep vesc
31         vesc    LoadBalancer   10.43.203.47    10.209.63.55     8080:31835/TCP          1m
32
33 7) Modify the file setup.sh and make the below change
34 # cd csit
35 # vi plans/usecases/5G-bulkpm/setup.sh 
36 CSIT=TRUE
37  to
38 CSIT=FALSE
39
40 8) Excute the Bulk PM e2e csit.
41 # ./run-csit.sh plans/usecases/5G-bulkpm/
42
43 --> Troubleshooting
44 --------------------
45 If the Test case "Verify Default Feed And File Consumer Subscription On Datarouter" is hanging, quit the test and execute the below
46 Get the DR-PROV IP address  
47 # kubectl -n onap -o=wide get pods | grep dmaap-dr-prov | awk '{print $6}'
48  10.42.123.76
49 Make sure there are no feeds
50 # curl -k https://10.42.123.76:8443/internal/prov
51
52 If there are feeds delete them
53 curl -X DELETE -H "Content-Type:application/vnd.att-dr.subscription" -H "X-ATT-DR-ON-BEHALF-OF:dradmin" -k https://10.42.123.76:8443/subs/XX
54
55 Where XX is the number of the feeds in the previous command.