1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-07-01 22:35:45 +00:00

fix: server 127.0.0.1 down entry only when required

This commit is contained in:
Gilles Filippini
2021-06-15 23:54:24 +02:00
parent 49b2b5cd97
commit fca248a965
5 changed files with 74 additions and 31 deletions

View File

@ -0,0 +1,7 @@
import pytest
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