diff options
Diffstat (limited to 'infra-healthcheck')
-rw-r--r-- | infra-healthcheck/README.md | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/infra-healthcheck/README.md b/infra-healthcheck/README.md index 97ed02e..117bd96 100644 --- a/infra-healthcheck/README.md +++ b/infra-healthcheck/README.md @@ -82,6 +82,45 @@ nexus3.onap.org:10003/onap/xtesting-infra-healthcheck:master /bin/bash -c "run_tests -r -t all" ``` +Note that you can run only a subset of the tests and decide if you report the +results to the test BD or not. +The following commands are correct: + +``` +docker run -v <the kube config>:/root/.kube/config +-v <result directory>:/var/lib/xtesting/results +nexus3.onap.org:10003/onap/xtesting-infra-healthcheck:master +/bin/bash -c "run_tests -t onap-k8s" +``` + +``` +docker run -v <the kube config>:/root/.kube/config +-v <the user home dir>/.helm/plugins/deploy/cache/onap/logs:/onap_helm_logs +-v <result directory>:/var/lib/xtesting/results +nexus3.onap.org:10003/onap/xtesting-infra-healthcheck:master +/bin/bash -c "run_tests -r -t onap-helm" +``` + +You can also run the docker in interactive mode, so you can run the tests from +inside the docker and directly modify the code of the test if you want. + +``` +docker run -it -v <the kube config>:/root/.kube/config +-v <the user home dir>/.helm/plugins/deploy/cache/onap/logs:/onap_helm_logs +-v <result directory>:/var/lib/xtesting/results +nexus3.onap.org:10003/onap/xtesting-infra-healthcheck:master bash +``` + +In this case you will get the bash prompt, you can run the test by typing in +the console + +``` +# run_tests -t onap-k8s +``` + +The code of the tests is in the docker. For python test, have a look at +/usr/lib/python3.8/site-packages. See the Dockerfile for more information. + ### Output ``` |