- Clone systests repo
git clone [email protected]:armosec/systests.git
- Create virtual env
./create_env.sh
- Activate virtual env
source systests_python_env/bin/activate
- Run profiled minikube (in case you do not have a kubernetes cluster)
- Start minikube
minikube start -p <minikube-name>
- Update
~/.bashrc
/~/.zprofile
fileeval $(minikube -p <minikube-name> docker-env)
- Start minikube
- Execute systemtest command
python systest-cli.py -t <test name> -b production -c CyberArmorTest
In case of helm/KS testing, it is recommended to cleanup your local environment before running the test
- Cleanup kubescape local environment:
kubescape config delete
- Cleanup helm local environment:
helm uninstall armo -n kubescape
- Cleanup kubescape local environment:
python systest-cli.py --list t
python systest-cli.py -t <test name> -b production -c CyberArmorTest
python systest-cli.py -t <test name> -b development -c CyberArmorTest
python systest-cli.py -t <test name> -b production -c CyberArmorTest --kwargs ks_branch=dev helm_branch=dev
// TODO
Before adding a test to the Jenkinsfiles pipeline, please make sure the test passes locally and in the Jenkins environment
- Duplicate the
CAA_Single_System_Tests
Jenkinsjob and name itCAA_Single_System_Tests_<My_Bramch>
- Edit the branch name
After your test passed in single test, you can add it to the pipeline.
There are three components we test:
- Armo BE
- Helm chart
- Kubescape
For this we have three different Jenkinsfiles:
- Armo BE -
Jenkinsfile-helm-ks-be.groovy
- Helm chart -
Jenkinsfile_helm_chart.groovy
- Kubescape -
Jenkinsfile_kubescape.groovy
Make sure to update the relevant file/s once you complete developing your test