Module: check_mk
Branch: master
Commit: 1edebdb57fa7572bc10beda69d2f90792a480a61
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1edebdb57fa757…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Oct 8 20:47:12 2018 +0200
Fix integration test after redirect changes (#6773, c353146d6)
Change-Id: I6d3a61568bb29b726c3278e4bbbe8c7b682dedbb
---
tests/integration/omd/test_web_access.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/integration/omd/test_web_access.py
b/tests/integration/omd/test_web_access.py
index 3e4a171..06d8cd4 100644
--- a/tests/integration/omd/test_web_access.py
+++ b/tests/integration/omd/test_web_access.py
@@ -18,7 +18,8 @@ def test_www_dir(site):
def test_base_path_redirects(site):
web = CMKWebSession(site)
- expected_target = '%s://%s/%s/check_mk/' % (site.http_proto,
site.http_address, site.id)
+ expected_target = '%s://%s:%d/%s/check_mk/' % \
+ (site.http_proto, site.http_address, site.apache_port, site.id)
web.check_redirect("/%s" % site.id, expected_target=expected_target)
web.check_redirect("/%s/" % site.id, expected_target=expected_target)