mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-07-01 14:25:46 +00:00
tests: enable local testing on macOS / Darwin
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import platform
|
||||
|
||||
import pytest
|
||||
from requests import ConnectionError
|
||||
|
||||
@ -19,6 +21,10 @@ def test_forwards_to_web2(docker_compose, nginxproxy):
|
||||
assert r.text == "answer from port 82\n"
|
||||
|
||||
|
||||
@pytest.mark.skipif(
|
||||
platform.system() == "Darwin",
|
||||
reason="This test rely on being able to directly contact the container's IP"
|
||||
)
|
||||
def test_ipv6_is_disabled_by_default(docker_compose, nginxproxy):
|
||||
with pytest.raises(ConnectionError):
|
||||
nginxproxy.get("http://nginx-proxy/port", ipv6=True)
|
||||
|
Reference in New Issue
Block a user