https://github.com/thoth-station/integration-tests
Integration tests for the Thoth project to make sure deployment works as expected
https://github.com/thoth-station/integration-tests
artificial-intelligence hacktoberfest thoth
Last synced: 8 months ago
JSON representation
Integration tests for the Thoth project to make sure deployment works as expected
- Host: GitHub
- URL: https://github.com/thoth-station/integration-tests
- Owner: thoth-station
- License: gpl-3.0
- Created: 2019-06-10T07:52:17.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2024-01-29T23:59:56.000Z (over 2 years ago)
- Last Synced: 2025-03-24T13:51:24.346Z (over 1 year ago)
- Topics: artificial-intelligence, hacktoberfest, thoth
- Language: Python
- Size: 1.08 MB
- Stars: 4
- Watchers: 8
- Forks: 12
- Open Issues: 13
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Integration tests for Thoth
---------------------------
This repo implements integration tests which can be executed against a Thoth deployment.
Running integration tests
=========================
The integration testsuite is written in `behave `_ using Gherkin language.
.. code-block:: console
./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 sits
* ``THOTH_MANAGEMENT_API_HOST`` - the HOST to deployment where Management API sits
* ``THOTH_AMUN_API_HOST`` - the HOST to deployment where Amun API sits
* ``THOTH_MANAGEMENT_API_SECRET`` - the secret to schedule solver analysis
* ``SEND_EMAIL`` - if set to ``1``, an e-mail report is sent with integration test results
* ``THOTH_DEPLOYMENT_NAME`` - specifies deployment name used (shown in the subject)
* ``THOTH_EMAIL_SMTP_SERVER`` - SMTP server to be used for sending the e-mail
* ``THOTH_EMAIL_TO`` - e-mail recipient
* ``THOTH_EMAIL_FROM`` - sender configuration
Examples
========
Run integration tests against stage deployment:
.. code-block:: console
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):
.. code-block:: console
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:
.. code-block:: console
app.py -i .feature
If you want to run a single scenario test:
.. code-block:: console
app.py -i -n ''