thoth-station / integration-tests

Integration tests for the Thoth project to make sure deployment works as expected
GNU General Public License v3.0
4 stars 12 forks source link
artificial-intelligence hacktoberfest thoth

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 <https://behave.readthedocs.io/>_ 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:

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 ''