2
0

test_http2_global_disabled.py 333 B

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