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:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user