Files
docker-autoheal/tests
Andreas Perhab da333f55b1 enable tests to use unique project and autoheal labels for CI
on CI servers where multiple docker containers run we might not
want to restart docker containers from other builds running in
parallel
2021-03-02 08:18:45 +01:00
..

Docker Autoheal Tests

Docker Compose is used to build and deploy test environment.

test.sh waits on watch-autoheal exit code.

Currently setup to a very basic exit 1 on invalid restart and exit 0 on valid restart.

Run tests

cd tests
./tests.sh

Run tests in CI

cd tests
export "AUTOHEAL_CONTAINER_LABEL=autoheal-123456"
./tests.sh "MY_UNIQUE_BUILD_NUMBER_123456"

This enables the tests to only restart containers within the test spec by using unique docker-compose project names and autoheal labels (as long as you replace 123456 by a unique number)