diff --git a/test/conftest.py b/test/conftest.py index 56cda49..2b1ab44 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -616,5 +616,5 @@ try: except docker.errors.ImageNotFound: pytest.exit("The docker image 'nginxproxy/nginx-proxy:test' is missing") -if Version(docker.__version__) < Version("7.0.0"): - pytest.exit("This test suite is meant to work with the python docker module v7.0.0 or later") +if Version(docker.__version__) < Version("5.0.0"): + pytest.exit("This test suite is meant to work with the python docker module v5.0.0 or later") diff --git a/test/test_custom/test_location-per-vhost.yml b/test/test_custom/test_location-per-vhost.yml index dd46a21..676712c 100644 --- a/test/test_custom/test_location-per-vhost.yml +++ b/test/test_custom/test_location-per-vhost.yml @@ -27,4 +27,4 @@ services: - "83" environment: WEB_PORTS: "83" - VIRTUAL_HOST: ~^regex.*\.nginx-proxy\.example$ + VIRTUAL_HOST: ~^regex.*\.nginx-proxy\.example$$ diff --git a/test/test_custom/test_per-vhost.yml b/test/test_custom/test_per-vhost.yml index 8813d5e..3680358 100644 --- a/test/test_custom/test_per-vhost.yml +++ b/test/test_custom/test_per-vhost.yml @@ -27,4 +27,4 @@ services: - "83" environment: WEB_PORTS: "83" - VIRTUAL_HOST: ~^regex.*\.nginx-proxy\.example$ + VIRTUAL_HOST: ~^regex.*\.nginx-proxy\.example$$ diff --git a/test/test_host-network-mode/test_proxy-host-network-mode.yml b/test/test_host-network-mode/test_proxy-host-network-mode.base.yml similarity index 76% rename from test/test_host-network-mode/test_proxy-host-network-mode.yml rename to test/test_host-network-mode/test_proxy-host-network-mode.base.yml index 283dcf5..1917d06 100644 --- a/test/test_host-network-mode/test_proxy-host-network-mode.yml +++ b/test/test_host-network-mode/test_proxy-host-network-mode.base.yml @@ -1,5 +1,9 @@ services: nginx-proxy: + image: nginxproxy/nginx-proxy:test + container_name: nginx-proxy + volumes: + - /var/run/docker.sock:/tmp/docker.sock:ro environment: HTTP_PORT: 8888 network_mode: host diff --git a/test/test_htpasswd/test_htpasswd-regex-virtual-host.yml b/test/test_htpasswd/test_htpasswd-regex-virtual-host.yml index b47236a..ba9d9ef 100644 --- a/test/test_htpasswd/test_htpasswd-regex-virtual-host.yml +++ b/test/test_htpasswd/test_htpasswd-regex-virtual-host.yml @@ -5,4 +5,4 @@ services: - "80" environment: WEB_PORTS: "80" - VIRTUAL_HOST: ~^regex.*\.nginx-proxy\.example$ + VIRTUAL_HOST: ~^regex.*\.nginx-proxy\.example$$ diff --git a/test/test_logs/test_log-disabled.yml b/test/test_logs/test_log-disabled.yml index 9e116d7..14b8e8b 100644 --- a/test/test_logs/test_log-disabled.yml +++ b/test/test_logs/test_log-disabled.yml @@ -1,7 +1,7 @@ services: nginx-proxy: environment: - DISABLE_ACCESS_LOGS: true + DISABLE_ACCESS_LOGS: "true" web1: image: web