mirror of
https://github.com/nginx-proxy/nginx-proxy
synced 2026-08-17 08:24:18 +02:00
13 lines
507 B
Python
13 lines
507 B
Python
import pytest
|
|
|
|
|
|
# Marked flaky: depends on the proxied vhost being generated and reloaded before the
|
|
# request, which can race with container startup under CI load. See pytest-ignore-flaky.
|
|
@pytest.mark.flaky
|
|
def test_web_has_no_server_down(docker_compose, nginxproxy):
|
|
conf = nginxproxy.get_conf().decode('ASCII')
|
|
r = nginxproxy.get("http://web.nginx-proxy.tld/port")
|
|
assert r.status_code == 200
|
|
assert r.text == "answer from port 81\n"
|
|
assert conf.count("server 127.0.0.1 down;") == 0
|