2
0

test_http2-global-disabled.py 320 B

12345678
  1. import re
  2. def test_http2_global_disabled_config(docker_compose, nginxproxy):
  3. conf = nginxproxy.get_conf().decode('ASCII')
  4. r = nginxproxy.get("http://http2-global-disabled.nginx-proxy.tld")
  5. assert r.status_code == 200
  6. assert not re.search(r"(?s)http2-global-disabled\.nginx-proxy\.tld.*http2 on", conf)