tests: Add integration tests for the Software Heritage stack
First draft of integration tests for the Software Heritage stack using the docker-compose environment and a couple of bash scripts.
Their purpose is to:
-
ensure the docker-compose environment is up to date and running
-
check there is no regression in high level Software Heritage features (loading origins, querying web api, vault cooking, ...)
The tests will fail if:
-
any of the swh service dies unexpectedly
-
any of the command in the test scripts exits with error
First written tests are about the loading of git origins and vault cooking.
To execute the tests, simply execute the run_tests.sh
script.
Related swh-environment#1618 (closed)
Migrated from D1436 (view on Phabricator)
Merge request reports
Activity
Because I think that bash is more adequate when one only wants to run a couple of shell commands sequentially and process their output / return code. The main idea here is "run a specific swh processing, exit with error if something went wrong".
This tests implementation already enables me to find issues in our stack (see swh-vault!42 (closed) for instance).