blob: 1d0fc41587c671c83ef37a9a2bdbfd7181be0f70 [file] [log] [blame]
LiamBurkea4516192019-02-11 12:28:55 +00001###################################################################################################################
2By executing the below commands it will change the CSIT test from executing on a docker envirnoment to an ONAP one.
3###################################################################################################################
4
51) 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
92) Clone the csit repositry
10# git clone https://gerrit.onap.org/r/integration/csit
11
123) 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
184) 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
255) Expose the Ves-collector
26# kubectl expose svc dcae-ves-collector --type=LoadBalancer --name=vesc -n onap
27 service "vesc" exposed
28
296) Verify the Ves-collector is expose
30# kubectl get svc -n onap | grep vesc
31 vesc LoadBalancer 10.43.203.47 10.209.63.55 8080:31835/TCP 1m
32
337) Modify the file setup.sh and make the below change
34# cd csit
35# vi plans/usecases/5G-bulkpm/setup.sh
36CSIT=TRUE
37 to
38CSIT=FALSE
39
408) Excute the Bulk PM e2e csit.
41# ./run-csit.sh plans/usecases/5G-bulkpm/
42
43
44--> Trobleshooting
45If the Test case "Verify Default Feed And File Consumer Subscription On Datarouter" is hanging, quit the test and execute the below
46Get 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
49Make sure there are no feeds
50# curl -k https://10.42.123.76:8443/internal/prov
51
52If there is feeds delete them
53curl -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
55Where XX is the number of the feeds in the previous command.