9 lines
322 B
Python
9 lines
322 B
Python
import time
|
|
|
|
|
|
def test_web_has_server_down(docker_compose, nginxproxy):
|
|
time.sleep(3)
|
|
conf = nginxproxy.get_conf().decode('ASCII')
|
|
r = nginxproxy.get("http://web.nginx-proxy.tld/port", expected_status_code=[502, 503])
|
|
assert r.status_code in [502, 503]
|
|
assert conf.count("server 127.0.0.1 down;") == 1
|