123456789101112131415161718192021 |
- def test_redirect_acme_challenge_location_legacy(docker_compose, nginxproxy, acme_challenge_path):
- r = nginxproxy.get(
- f"http://web1.nginx-proxy.tld/{acme_challenge_path}",
- allow_redirects=False
- )
- assert r.status_code == 200
- def test_noredirect_acme_challenge_location_legacy(docker_compose, nginxproxy, acme_challenge_path):
- r = nginxproxy.get_with_code(
- 404,
- f"http://web2.nginx-proxy.tld/{acme_challenge_path}",
- allow_redirects=False
- )
- assert r.status_code == 404
- def test_unknown_domain_acme_challenge_location_legacy(docker_compose, nginxproxy, acme_challenge_path):
- r = nginxproxy.get_unknown_host(
- f"http://web-unknown.nginx-proxy.tld/{acme_challenge_path}",
- allow_redirects=False
- )
- assert r.status_code == 503
|