Module: check_mk
Branch: master
Commit: 55a73798330639641a6308a0484bc92bde82bcaa
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=55a73798330639…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Oct 8 15:43:57 2018 +0200
Added debug code for current integration test problems.
Change-Id: I257b020b551d8cef7e1fc8d3e25163aa15d2e1d1
---
tests/testlib/__init__.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index 935613c..c5adeca 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -966,6 +966,8 @@ class WebSession(requests.Session):
response = self.get(path, expected_code=expected_code, allow_redirects=False)
if expected_target:
+ if response.headers['Location'] != expected_target:
+ raise AssertionError("REDIRECT FAILED: '%s' !=
'%s'" % (response.headers['Location'], expected_target))
assert response.headers['Location'] == expected_target