1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-07-01 14:25:46 +00:00

tests: review comments

This commit is contained in:
Nicolas Duchon
2024-12-27 16:16:55 +01:00
parent 1e9745f604
commit ea99c1a6f9
47 changed files with 78 additions and 80 deletions

View File

@ -21,6 +21,5 @@ def test_multipath(docker_compose, nginxproxy):
assert r.text == "answer from port 83\n"
cfg = nginxproxy.get_conf().decode()
lines = cfg.splitlines()
web3_server_lines = [l for l in lines
if re.search(r'(?m)^\s*server\s+[^\s]*:83;\s*$', l)]
web3_server_lines = [l for l in lines if re.search(r'(?m)^\s*server\s+\S*:83;\s*$', l)]
assert len(web3_server_lines) == 1

View File

@ -20,7 +20,7 @@ services:
expose:
- "81"
environment:
WEB_PORTS: 81
WEB_PORTS: "81"
VIRTUAL_HOST: web1.nginx-proxy.example
networks:
- net1
@ -30,7 +30,7 @@ services:
expose:
- "82"
environment:
WEB_PORTS: 82
WEB_PORTS: "82"
VIRTUAL_HOST: web2.nginx-proxy.example
networks:
- net2
@ -40,7 +40,7 @@ services:
expose:
- "83"
environment:
WEB_PORTS: 83
WEB_PORTS: "83"
VIRTUAL_HOST: web3.nginx-proxy.test
networks:
- net3a