Please refer to gen3-helm repo
Note: This assumes that USERYAML block is correctly set up in the values.yaml used to start the instance.
Switch to gen3-integration-tests
directory and execute:
```
./scripts/helm/generate_api_keys.sh test_data/test_setup/users.csv <hostname>
```
Note: you might need to run chmod +x ./scripts/helm/generate_api_keys.sh
once
The API keys should be saved to ~/.gen3
directory
- Switch to
gen3-integration-tests
directory - Set up the following environment variables in the
.env
fileGEN3_INSTANCE_TYPE="HELM_LOCAL" HOSTNAME="<hostname>" JENKINS_URL=<Jenkins Host> JENKINS_USERNAME=<Jenkins Username> JENKINS_PASSWORD=<Jenkins API Token>
- Run tests with pytest
poetry run pytest --alluredir allure-results -n auto --dist loadscope
We can set TESTED_ENV to the enviroment being actually tested. This is useful when we replicate the configuration of the tested environment in the dev / test environment for testing or development. We can then run the tests by:
- Setting up TESTED_ENV in
.env
file, e.g.,GEN3_INSTANCE_TYPE="HELM_LOCAL" HOSTNAME="<hostname>" JENKINS_URL=<Jenkins Host> JENKINS_USERNAME=<Jenkins Username> JENKINS_PASSWORD=<Jenkins API Token> TESTED_ENV="healdata.org"
- Run tests with pytest
poetry run pytest --alluredir allure-results -n auto --dist loadscope