APPC CSIT Functional Test Cases
This page describes how APPC runs CSIT in master-csit-healthcheck job based on docker compose environment, which is heat environment, And runs CSIT in testsuites Repo based on k8s environment.
Test Case in Master-CSIT-HealthCheck Job in Jenkins:
APPC does two major portions of CSIT, All the test case is under CSIT Repo.
csit/tests/appc/healthcheck:
test1.robot:
health_check: send http://localhost:8282/restconf/operations/SLI-API:healthcheck to APPC
bundle_query: check all karaf's bundles are not in failed state
db_query: run sql statements in APPC DB
APPC_Netstat.robot: run "netstat -a | grep -E ":8282 " | grep LISTEN" makes sure 8282 port is in LISTEN state
LCM_HEALTHCHECK_TIMESTAMP.robot: make sure apidoc is working
LCM_VM_RESTART_TIMESTAMP.robot: send LCM_VM_RESTART_REQUEST.txt to make sure VM:Restart is working
LCM_VNF_RESTART_TIMESTAMP.robot: send LCM_VNF_RESTART_REQUEST.txt to make sure VNF:Restart is working
csit/tests/appc/cdt/cdt.robot:
Verify Home page and links:Access Home page and Verify the links
Verify MY VNFs link will ask for user entry
Verify creation of VNF
Verify description of VNFC
Setup:
login to 10.12.5.43, follow the steps on APPC WindRiver Lab
Install steps for robotframework, selenium and chromedrive: https://tecadmin.net/setup-selenium-chromedriver-on-ubuntu/
Before running CSIT on 10.12..5.43, make sure chromedrive runs in background, if not then run "sudo -i; nohup /usr/local/bin/chromedriver >
/dev/null 2>&1
&"
Note: How to test CSIT before submit the change to csit repo:
login to 10.12.5.43, follow the steps on APPC WindRiver Lab
check all dockers running on the heat environment
cd /home/ubuntu
make sure the CSIT under ~/csit
cd /home/ubuntu/csit
python -m robot.run -N plans/appc/healthcheck -v WORKSPACE:/tmp -v SCRIPTS:/home/ubuntu/csit/plans/appc/healthcheck /home/ubuntu/csit/tests/appc/healthcheck /home/ubuntu/csit/tests/appc/cdt
Test Case in testsuite/robot Repo in OOM environment:
ONAP creates a robot pod which is based on robot framework to verify all projects' functions. In order to verify the APPC functionalities in k8s environment, the testsuite for APPC resides on testsuite/robot/resources/appc_interface.robot.
Run APPC Post Request: /operations/SLI-API:healthcheck
Run APPC Post Request
Run APPC Put Request
Create Mount Point In APPC
Preload APPC CDT GUI
Note: How to test testsuite/robot before submit the change to repo:
login to 10.12.6.68, follow the steps on APPC WindRiver Lab
check all pods running on the k8s environment
./test.sh : it basically runs: "POD=$(kubectl --namespace onap get pods | sed 's/ .*//'| grep robot); kubectl --namespace onap exec ${POD} -- /var/opt/ONAP/runTags.sh -V /share/config/vm_properties.py -V /share/config/integration_robot_properties.py -V /share/config/integration_preload_parameters.py -v MODULE_NAME:cdt -d /share/logs/demo/APPCCDTPreloadDemo -i APPCCDTPreloadDemo --display 89" to trigger testcase from Robot pod.