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:
nexus3.onap.org:10003/onap/xtesting-smoke-usecases-pythonsdk
nexus3.onap.org:10003/onap/xtesting-infra-healthcheck
nexus3.onap.org:10003/onap/xtesting-security
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.
Docker | README link |
---|---|
xtesting-infra-healthcheck | https://github.com/onap/integration-xtesting/blob/master/infra-healthcheck/README.md |
xtesting-smoke-usecases-pythonsdk | https://github.com/onap/integration-xtesting/tree/master/smoke-usecases-pythonsdk |
xtesting-security | https://github.com/onap/integration-xtesting/blob/master/security/README.md |
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
nexus3.onap.org:10003/onap/xtesting-healthcheck
nexus3.onap.org:10003/onap/xtesting-smoke-usecases-robot
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.
Docker | README link |
---|---|
xtesting-healthcheck | https://github.com/onap/integration-xtesting/blob/master/healthcheck/README.md |
xtesting-smoke-usecases-robot | https://github.com/onap/integration-xtesting/blob/master/smoke-usecases-robot/README.md |
A demo has been done on how to run healthcheck full, onap-k8s and basic_vm on an ONAP lab