2
0

test_vhost-empty-string.py 496 B

12345678910
  1. import re
  2. def test_vhost_empty_string(docker_compose, nginxproxy):
  3. conf = nginxproxy.get_conf().decode()
  4. assert re.search(r"(?m)^\s*server_name\s+web2\.nginx-proxy\.test\s*;", conf)
  5. assert re.search(r"(?m)^\s*server_name\s+web3\.nginx-proxy\.test\s*;", conf)
  6. assert re.search(r"(?m)^\s*server_name\s+web4a\.nginx-proxy\.test\s*;", conf)
  7. assert re.search(r"(?m)^\s*server_name\s+web4b\.nginx-proxy\.test\s*;", conf)
  8. assert not re.search(r"(?m)^\s*server_name\s*;", conf)