How do I run xtesting tests on my ONAP lab?

The xtesting dockers are now built in ONAP and can be found in the nexus: https://nexus3.onap.org/#browse/search=keyword%3Dxtesting

xtesting dockers includes the libraries needed to perform different tests.

They can be launched from any CI system or manually from your infrastructure.

As we are leveraging the xtesting framework, the results will be managed consistantly whatever the test framework used (robot, python, bash,..) and optionnaly it is possible to push the results in http://testresults.opnfv.org

We may distinguish 2 big families

1) the tests run with docker from outside the cluster

3 categories are run from outside the cluster:

These tests will be run through a docker run command with the needed volumes associated to the different tests. As an example infrastructure tests will need the kube config file, the pyhtonsdk tests will require the openstack project credentials..

Each docker includes a README file detailing the mandatory and optional options.




2) the tests run from inside the cluster

Some tests (the historical robot tests) are run from inside the cluser thanks to a kubernetes job

This job triggers a pod executing the robot tests. The configuration is provided by the testuise configmap but the testsuite pod is not needed.

Please read the different README associated with the docker to get the mandatory/optional parameters to be adapted.



A demo has been done on how to run healthcheck full, onap-k8s and basic_vm on an ONAP lab