mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-02-24 01:38:15 +00:00
test: fix wildcard_certs_and_nohttps test
This commit is contained in:
parent
faad1cc29e
commit
2b621599ff
@ -27,7 +27,7 @@ def test_https_get_served(docker_compose, nginxproxy, subdomain):
|
||||
def test_https_request_to_nohttps_vhost_goes_to_fallback_server(docker_compose, nginxproxy):
|
||||
with pytest.raises( (CertificateError, SSLError) ) as excinfo:
|
||||
nginxproxy.get("https://3.web.nginx-proxy.tld/port")
|
||||
assert """hostname '3.web.nginx-proxy.tld' doesn't match 'nginx-proxy.tld'""" in str(excinfo.value)
|
||||
assert """certificate is not valid for '3.web.nginx-proxy.tld'""" in str(excinfo.value)
|
||||
|
||||
r = nginxproxy.get("https://3.web.nginx-proxy.tld/port", verify=False)
|
||||
assert r.status_code == 503
|
||||
|
Loading…
x
Reference in New Issue
Block a user