mirror of
https://github.com/nginx-proxy/nginx-proxy
synced 2025-02-05 05:41:39 +01:00
b5dea1cf50
- remove unused imports in test cases - fix code smells and code style in conftest.py
6 lines
257 B
Python
6 lines
257 B
Python
def test_web_has_server_down(docker_compose, nginxproxy):
|
|
conf = nginxproxy.get_conf().decode('ASCII')
|
|
r = nginxproxy.get("http://web.nginx-proxy.tld/port")
|
|
assert r.status_code in [502, 503]
|
|
assert conf.count("server 127.0.0.1 down;") == 1
|