Files
docker-autoheal/tests
modem7 5b99d0280f Updating image
Updated Dockerfile and scripts with some of the latest PR's, and work from tylerpace.

Adding a few files back from original repo such as tests and github workflow.

Co-Authored-By: Tyler Pace <4195596+tylerpace@users.noreply.github.com>
2023-09-15 15:32:52 +01:00
..
2023-09-15 15:32:52 +01:00
2023-09-15 15:32:52 +01:00
2023-09-15 15:32:52 +01:00
2023-09-15 15:32:52 +01:00
2023-09-15 15:32:52 +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)