devops_wrkflow - sonata-nfv/tng-tests GitHub Wiki
This page describes the way of working followed by 5GTANGO to perform the functional and non-functional tests over the SP and the VnV.
The steps of the DevOps workflow are:
- Clone the repository:
git clone https://github.com/sonata-nfv/tng-tests.git
- Create a folder in for your test in the route /test/SP/test_name or /test/VNV/test_name
- Create a README.md with the test description example
- Create a file .robot with the definition of the test example
- Create a new freestyle job in Jenkins with the following conditions:
- The job name is
test-<test-name>-<test-id>
. See the cases here - For steps 3-7, follow the job example here. Please don't edit :D
- Add a String Parameter with the SP_PATH
- Clone the sonata-nfv/tng-test repository
- Under Build tab, choose 'Copy Artifacts from another project' in order to access the packages
- Under Build tab, choose 'Execute Shell' and write the commands to execute the test
- Under Post-build tab, choose 'Publish Robot Framework test results'
- Execute the test
- Check the deployment matrix to select the right place to run your test
- The tests will be called from a test control centre job that will parallelize the execution over the environments. So the environment selection should be an environment Variable for the execution. SP_PATH env will be injected.
- The results are stored as artifacts to be collected by an analyzer job
- The job name is
If something went wrong, you will receive an email to have a look what's happening.
We will have a test matrix where we will have the status of all tests.