|
@@ -33,7 +33,6 @@ def get(docker_compose, nginxproxy, want_err_re):
|
|
|
|
|
|
|
|
|
INTERNAL_ERR_RE = re.compile("TLSV1_ALERT_INTERNAL_ERROR")
|
|
|
-CONNECTION_REFUSED_RE = re.compile("Connection refused")
|
|
|
|
|
|
|
|
|
@pytest.mark.parametrize("compose_file,url,want_code,want_err_re", [
|
|
@@ -79,14 +78,14 @@ CONNECTION_REFUSED_RE = re.compile("Connection refused")
|
|
|
("nohttp-with-missing-cert.yml", "https://unknown.nginx-proxy.test/", 503, None),
|
|
|
|
|
|
("nohttps.yml", "http://http-only.nginx-proxy.test/", 200, None),
|
|
|
- ("nohttps.yml", "https://http-only.nginx-proxy.test/", None, CONNECTION_REFUSED_RE),
|
|
|
+ ("nohttps.yml", "https://http-only.nginx-proxy.test/", None, INTERNAL_ERR_RE),
|
|
|
("nohttps.yml", "http://unknown.nginx-proxy.test/", 503, None),
|
|
|
- ("nohttps.yml", "https://unknown.nginx-proxy.test/", None, CONNECTION_REFUSED_RE),
|
|
|
+ ("nohttps.yml", "https://unknown.nginx-proxy.test/", None, INTERNAL_ERR_RE),
|
|
|
|
|
|
("nohttps-on-app.yml", "http://http-only.nginx-proxy.test/", 200, None),
|
|
|
- ("nohttps-on-app.yml", "https://http-only.nginx-proxy.test/", None, CONNECTION_REFUSED_RE),
|
|
|
+ ("nohttps-on-app.yml", "https://http-only.nginx-proxy.test/", None, INTERNAL_ERR_RE),
|
|
|
("nohttps-on-app.yml", "http://unknown.nginx-proxy.test/", 503, None),
|
|
|
- ("nohttps-on-app.yml", "https://unknown.nginx-proxy.test/", None, CONNECTION_REFUSED_RE),
|
|
|
+ ("nohttps-on-app.yml", "https://unknown.nginx-proxy.test/", None, INTERNAL_ERR_RE),
|
|
|
|
|
|
|
|
|
|