X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fcloudtaf.git;a=blobdiff_plain;f=resources%2Frobot_container%2FREADME.rst;fp=resources%2Frobot_container%2FREADME.rst;h=e7e27c1c5811b5868db2d72c546cfe149797338d;hp=0000000000000000000000000000000000000000;hb=af5eb3ff36b92ab1d9c156ffa0391eadc73eb6ba;hpb=025a45508d009db84c34076fb4a668f712628d6d diff --git a/resources/robot_container/README.rst b/resources/robot_container/README.rst new file mode 100644 index 0000000..e7e27c1 --- /dev/null +++ b/resources/robot_container/README.rst @@ -0,0 +1,47 @@ +Introduction +------------ + +Containerized test environment to run functional tests on CAAS deployments. Test cases are written in python, +executed with Robot Framework using Pabot parallel executor for robot. + +The container will contain the test resources including the helm charts and container images for the test applications, +test cases and the scripts needed for the execution. + + +Environment setup +----------------- + +Few config parameters should be set in resources/scripts/include/robot_container.env + +| ROBOT_CONTAINER_TAG: tag of the executor container +| TC_TAG: test cases will be executed indicated with this tag +| SUT_IP: controller-1 node IP of the deployment +| SKIP_BM_ONBOARD if false test applications onboard will be skipped (this is useful for re-execution) +| PASSWORD: password for cloudadmin user + +These parameters should be set for manual execution, otherwise these are set by the jenkins test job +(currently http://jenkins2.mtlab.att-akraino.org/job/Test_cloudtaf_modifications/) + + +Building the environment +------------------------ + +resources/scripts/build-test-containers.sh script builds the test containers located in resources/test_containers/ folder. + +resources/scripts/robot-test-build.sh script builds the robot executor container + + +Executing tests +--------------- + +resources/scripts/robot-test-run.sh script starts the robot container. The entrypoint is the robot-deployment-test.sh +script, this will perform the onboarding of the test application, and execute the test suites parallelly from folder +testcases/parallel_suites/. +The robot logs will be available in pabot_logs folder. + +Test cases can be executed separately with command like +python -m robot -t "CAAS_BASIC_FUNC_002" --variable floating_ip: --loglevel trace ssh_check.robot +In this case please check the installed packages in the Dockerfile. + +Another option is to start the executor container based on the resources/scripts/robot-test-run.sh script overriding the +entrypoint with option --entrypoint=/bin/bash \ No newline at end of file