1
0
mirror of https://github.com/nginx-proxy/nginx-proxy synced 2025-08-19 10:24:47 +02:00
nginx-proxy/test/test_ports/test_virtual-port-single-different-from-single-port.py
2024-12-24 16:22:20 +01:00

8 lines
296 B
Python

import re
def test_answer_is_served_from_virtual_port_which_is_ureachable(docker_compose, nginxproxy):
r = nginxproxy.get("http://web.nginx-proxy.tld/port")
assert r.status_code == 502
assert re.search(r"\n\s+server \d+\.\d+\.\d+\.\d+:90;\n", nginxproxy.get_conf().decode('ASCII'))