From 3317743bd67d4019099f55d27a1bba12fc499bba Mon Sep 17 00:00:00 2001 From: morganrol Date: Thu, 18 Mar 2021 11:48:21 +0100 Subject: [DOC] Add missing parameters for basic_cnf The parameter of the target k8s infrastructure was not indicated in the documentation it was set in CI properly but hard to guess... Issue-ID: INT-1888 Signed-off-by: morganrol Change-Id: I4ce557b575a22525fada86eb4459005b0a3ad8f8 --- smoke-usecases-pythonsdk/README.md | 43 +++++++++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 10 deletions(-) (limited to 'smoke-usecases-pythonsdk/README.md') diff --git a/smoke-usecases-pythonsdk/README.md b/smoke-usecases-pythonsdk/README.md index fdae430..fa1d326 100644 --- a/smoke-usecases-pythonsdk/README.md +++ b/smoke-usecases-pythonsdk/README.md @@ -125,13 +125,15 @@ The different needed volumes are: - The local result directory path: to store the results in your local environement. It shall corresponds to the internal result docker path /var/lib/xtesting/results -- The kubernetes .kube/config configuration for use cases interacting with kubernetes - (basic_cnf) - The openstack cloud.yaml for use cases interacting with Openstack infrastructures (basic_vm, basic_network) - The customization of your service. You can overwrite the model datas by the values matching your environement. In this case you need to replace the default service configuration file +- The kubernetes .kube/config configuration for use cases interacting with kubernetes + (basic_cnf) +- The target kubernetes .kube/config configuration for basic_cnf, it shall be in the + templates/artifacts directory of onaptests An example of clouds.yaml @@ -200,15 +202,15 @@ t+w+EC9/kBKq+1VKdmsXUXAcjEvjovVL8l1BrX3BY0R8D imported-openssh-key" ] ``` -### Command +### Commands If you specify all the hosts ``` docker run --v :/var/lib/xtesting/conf/env_file --v /root/.config/openstack/clouds.yaml --v /root/.kube/config +--env-file +-v :/root/.config/openstack/clouds.yaml +-v :/root/.kube/config -v :/usr/lib/python3.8/site-packages/onaptests/templates/vnf-services/ubuntu16test-service.yaml -v :/var/lib/xtesting/results --add-host="portal.api.simpledemo.onap.org:" @@ -224,16 +226,37 @@ docker run nexus3.onap.org:10003/onap/xtesting-smoke-usecases-pythonsdk:master /bin/sh -c "run_tests -t basic_vm" ``` -Unkike the other xtesting docker, 1 docker = 1 use case, the target -t all is +``` +docker run +--env-file +-v :/root/.config/openstack/clouds.yaml +-v :/root/.kube/config +-v :/src/onaptests/src/onaptests/templates/artifacts/config +-v :/usr/lib/python3.8/site-packages/onaptests/templates/vnf-services/ubuntu16test-service.yaml +-v :/var/lib/xtesting/results +--add-host="portal.api.simpledemo.onap.org:" +--add-host="vid.api.simpledemo.onap.org:" +--add-host="sdc.api.fe.simpledemo.onap.org:" +--add-host="sdc.api.be.simpledemo.onap.org:" +--add-host="aai.api.sparky.simpledemo.onap.org:" +--add-host="so.api.simpledemo.onap.org:" +--add-host="sdnc.api.simpledemo.onap.org:" +--add-host="sdc.workflow.plugin.simpledemo.onap.org:" +--add-host="sdc.dcae.plugin.simpledemo.onap.org:" +--add-host="msb.api.simpledemo.onap.org:" +nexus3.onap.org:10003/onap/xtesting-smoke-usecases-pythonsdk:master /bin/sh -c "run_tests -t basic_cnf" +``` + +Unkike the other xtesting dockers, 1 docker = 1 use case, the target -t all is not usable. Note you can run also the docker interactivly ``` docker run -it --v :/var/lib/xtesting/conf/env_file --v /root/.config/openstack/clouds.yaml --v /root/.kube/config +-env-file +-v :/root/.config/openstack/clouds.yaml +-v :/root/.kube/config -v :/var/lib/xtesting/results nexus3.onap.org:10003/onap/xtesting-smoke-usecases-pythonsdk:master sh ``` -- cgit 1.2.3-korg