mirror of
https://github.com/thib8956/nginx-proxy
synced 2025-07-02 23:05:46 +00:00
tests: Add tests for how Let's Encrypt ACME challenge is handled
At the moment no changes to functionality are done, only the current behavior is captured.
This commit is contained in:
@ -10,3 +10,11 @@ def test_http_is_forwarded(docker_compose, nginxproxy):
|
||||
def test_https_is_disabled(docker_compose, nginxproxy):
|
||||
with pytest.raises(ConnectionError):
|
||||
nginxproxy.get("https://web.nginx-proxy.tld/", allow_redirects=False)
|
||||
|
||||
|
||||
def test_http_acme_challenge_does_not_work(docker_compose, nginxproxy, acme_challenge_path):
|
||||
r = nginxproxy.get(
|
||||
f"http://web.nginx-proxy.tld/{acme_challenge_path}",
|
||||
allow_redirects=False
|
||||
)
|
||||
assert r.status_code == 404
|
||||
|
Reference in New Issue
Block a user