1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-07-02 23:05:46 +00:00

test: paths are stripped from debug endpoint response if too long

This commit is contained in:
Nicolas Duchon
2024-11-02 17:14:34 +01:00
parent 190030745c
commit 9114b8047d
3 changed files with 42 additions and 9 deletions

View File

@ -19,6 +19,6 @@ def test_debug_endpoint_response_contains_expected_values(docker_compose, nginxp
try:
jsonResponse = json.loads(r.text)
except ValueError as err:
pytest.fail("Failed to parse JSON response: %s" % err, pytrace=False)
pytest.fail("Failed to parse debug endpoint response as JSON:: %s" % err, pytrace=False)
assert jsonResponse["global"]["enable_debug_endpoint"] == "false"
assert jsonResponse["vhost"]["enable_debug_endpoint"] == True