1
0
docker-letsencrypt-nginx-pr.../test
Grieche 9f32ebcd83 Added test unit for LETSENCRYPT_MIN_VALIDITY environment variable
Modified Boulder to issue certificates with 88 day lifetime
2019-01-08 18:11:48 +01:00
..
setup Added test unit for LETSENCRYPT_MIN_VALIDITY environment variable 2019-01-08 18:11:48 +01:00
tests Added test unit for LETSENCRYPT_MIN_VALIDITY environment variable 2019-01-08 18:11:48 +01:00
config.sh Added test unit for LETSENCRYPT_MIN_VALIDITY environment variable 2019-01-08 18:11:48 +01:00
README.md Enable tests on macOS 2018-05-16 10:16:23 +02:00
run.sh Run test containers on boulder network 2018-09-03 10:39:02 +02:00

letsencrypt-nginx-proxy-companion test suite

The test suite can be run locally on a Linux or macOS host.

To prepare the test setup:

git clone https://github.com/JrCs/docker-letsencrypt-nginx-proxy-companion.git
cd docker-letsencrypt-nginx-proxy-companion
test/setup/setup-local.sh --setup

Then build the docker image and run the tests:

docker build -t jrcs/letsencrypt-nginx-proxy-companion .
test/run.sh jrcs/letsencrypt-nginx-proxy-companion

You can limit the test run to specific test(s) with the -t flag:

test/run.sh -t docker_api jrcs/letsencrypt-nginx-proxy-companion

When running the test suite, the standard output of each individual test is captured and compared to its expected-std-out.txt file. When developing or modifying a test, you can use the -d flag to disable the standard output capture by the test suite.

test/run.sh -d jrcs/letsencrypt-nginx-proxy-companion

To remove the test setup:

test/setup/setup-local.sh --teardown