1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2024-11-25 05:16:30 +00:00

Fixed HTTPS test

This commit is contained in:
Steve Kamerman 2017-01-31 23:57:16 -08:00 committed by Thomas LEVEIL
parent 912f5615dc
commit ad57c48465
2 changed files with 1 additions and 2 deletions

View File

@ -16,4 +16,3 @@ def test_web2_HSTS_policy_is_active(docker_compose, nginxproxy):
r = nginxproxy.get("https://web2.nginx-proxy.tld/port", allow_redirects=False) r = nginxproxy.get("https://web2.nginx-proxy.tld/port", allow_redirects=False)
assert "answer from port 82\n" in r.text assert "answer from port 82\n" in r.text
assert "Strict-Transport-Security" in r.headers assert "Strict-Transport-Security" in r.headers

View File

@ -11,4 +11,4 @@ def test_https_is_disabled(docker_compose, nginxproxy):
with pytest.raises(ConnectionError) as excinfo: with pytest.raises(ConnectionError) as excinfo:
r = nginxproxy.get("https://web.nginx-proxy.tld/", allow_redirects=False) r = nginxproxy.get("https://web.nginx-proxy.tld/", allow_redirects=False)
assert "[Errno 93] Protocol not supported" in excinfo.value assert "[Errno 93] Protocol not supported" in str(excinfo.value)