X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=README.md;h=065b8785a189f2df6563f840a17930ffa4946968;hb=dce1fa815ef9b08b39cf878f13445898c262764c;hp=eb13bf06cf98955c8f69c9e35cd2b30be2783edb;hpb=f96bb45c0a03f2188688d90d67ea718851cec2de;p=osm%2Ftests.git diff --git a/README.md b/README.md index eb13bf0..065b878 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ This bash script can be used to setup your environment to execute the tests. add-apt-repository -y ppa:rmescandon/yq && apt update && apt install yq git iputils-ping ssh -y pip install haikunator requests robotframework robotframework-seleniumlibrary robotframework-requests robotframework-jsonlibrary \ robotframework-sshlibrary + snap install charm # Download community packages git clone https://osm.etsi.org/gitlab/vnf-onboarding/osm-packages.git ${PACKAGES_FOLDER} ``` @@ -43,16 +44,26 @@ This bash script can be used to setup your environment to execute the tests. envfile.rc ```bash - # VIM setup + # VIM Setup OS_USERNAME= OS_PASSWORD= OS_TENANT_NAME= OS_AUTH_URL= OS_TENANT_ID= + + # OSM Setup OSM_HOSTNAME= VIM_TARGET= VIM_MGMT_NET= + # Clouds file datacenter + OS_CLOUD= + # SDNCs file + OS_SDNC= + + # K8S config file + K8S_CREDENTIALS= + # The following set of environment variables will be used in host # of the robot framework. Not needed for docker execution @@ -76,7 +87,7 @@ It is possible to run the tests directly from the repository or using a docker c 1. Docker container creation: ```bash -docker build -t osmtests . +docker build -f docker/Dockerfile -t osmtests . ``` Options: @@ -90,12 +101,18 @@ Volumes: * [OPTIONAL]: It is the absolute path to reports location in the host * [OPTIONAL]: It is the absolute path to the clouds.yaml file in the host +* [OPTIONAL]: It is the absolute path to the sdncs.yaml file in the host +* [OPTIONAL]: It is the kubeconfig file to be used for k8s clusters ```bash docker run --rm=true -t osmtests --env-file \ - -v :/reports osmtests -v :/robot-systest/clouds.yaml \ - -v :/robot-systest/kubeconfig.yaml - -o -p -t + -v :/reports osmtests \ + -v :/robot-systest/clouds.yaml \ + -v :/robot-systest/sdncs.yaml \ + -v :/root/.kube/config \ + -o \ + -p \ + -t ``` 1. Running the tests manually: