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.

  1. csit/tests/appc/healthcheck:

    • test1.robot:
    • 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
  2. 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:

Note: How to test CSIT before submit the change to csit repo:

  1. login to 10.12.5.43, follow the steps on APPC WindRiver Lab
  2. check all dockers running on the heat environment
  3. cd /home/ubuntu
  4. make sure the CSIT under ~/csit
  5. cd /home/ubuntu/csit
  6. 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:

  1. login to 10.12.6.68, follow the steps on APPC WindRiver Lab
  2. check all pods running on the k8s environment
  3. ./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.