This repository has been archived on 2020-08-01. You can view files and clone it, but cannot push or open issues or pull requests.
nginx-proxy/test
Pit Kleyersburg 86aea653c8 Update to docker-gen 0.7.0
Since [1] some timings seem to have changed. This caused the unit tests
to fail intermittently, from my testings especially on Ubuntu systems
(much less often on e.g. Arch).

This commit adds the `dockergen_wait_for_event` helper-function to try
and wait for the configuration to be generated by docker-gen before
continuing on with the actual tests themselves.

Additionally, at the end of every test file, all containers spun up by
the bats-tests will be stopped. This required adding the `bats-type`
label to every container started during the bats-tests.

The stopping of the containers reduces the amount of events docker-gen
has to process, thus resulting in lower wait times for the generation to
happen.

[1]: 50435652b1
2016-03-23 17:45:34 +01:00
..
lib Update to docker-gen 0.7.0 2016-03-23 17:45:34 +01:00
default-host.bats Update to docker-gen 0.7.0 2016-03-23 17:45:34 +01:00
docker.bats Update to docker-gen 0.7.0 2016-03-23 17:45:34 +01:00
multiple-hosts.bats Update to docker-gen 0.7.0 2016-03-23 17:45:34 +01:00
multiple-ports.bats Update to docker-gen 0.7.0 2016-03-23 17:45:34 +01:00
README.md add test suite. See #197 2015-09-29 23:46:36 +00:00
test_helpers.bash Update to docker-gen 0.7.0 2016-03-23 17:45:34 +01:00
wildcard-hosts.bats Update to docker-gen 0.7.0 2016-03-23 17:45:34 +01:00

Test suite

This test suite is implemented on top of the Bats test framework.

It is intended to verify the correct behavior of the Docker image jwilder/nginx-proxy:bats.

Running the test suite

Make sure you have Bats installed, then run:

docker build -t jwilder/nginx-proxy:bats .
bats test/