This repo implements integration tests which can be executed against a Thoth deployment.
The integration testsuite is written in behave using Gherkin language.
./app.py
The command above will trigger installation of all the necessary libraries and executing the test-suite in a virtual environment. By default, test environment is tested with integration tests. The script above can be parametrized using the following environment variables:
THOTH_USER_API_HOST
- the HOST to deployment where User API sitsTHOTH_MANAGEMENT_API_HOST
- the HOST to deployment where Management API sitsTHOTH_AMUN_API_HOST
- the HOST to deployment where Amun API sitsTHOTH_MANAGEMENT_API_SECRET
- the secret to schedule solver analysisSEND_EMAIL
- if set to1
, an e-mail report is sent with integration test resultsTHOTH_DEPLOYMENT_NAME
- specifies deployment name used (shown in the subject)THOTH_EMAIL_SMTP_SERVER
- SMTP server to be used for sending the e-mailTHOTH_EMAIL_TO
- e-mail recipientTHOTH_EMAIL_FROM
- sender configuration
Run integration tests against stage deployment:
THOTH_USER_API_HOST=stage.thoth-station.ninja THOTH_MANAGEMENT_API_HOST=management.stage.thoth-station.ninja THOTH_AMUN_API_HOST=amun.stage.thoth-station.ninja ./app.py
Run integration tests against test deployment (default behaviour):
THOTH_USER_API_HOST=test.thoth-station.ninja THOTH_MANAGEMENT_API_HOST=management.test.thoth-station.ninja THOTH_AMUN_API_HOST=amun.test.thoth-station.ninja ./app.py
If you want to run a single feature test:
app.py -i <feature name>.feature