Module: check_mk
Branch: master
Commit: 80e79d528fff71a09e19190150f81d7063314424
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=80e79d528fff71…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Oct 21 15:22:25 2016 +0200
web tests: Verify initial WATO call
---
tests/testlib/__init__.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index bab151f..7a0593f 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -274,7 +274,11 @@ class Site(object):
def init_wato(self):
web = CMKWebSession(self)
web.login()
- web.get("wato.py")
+
+ # Call WATO once for creating the default WATO configuration
+ response = web.get("wato.py").text
+ assert "<title>WATO" in response
+ assert "<div class=title>Manual Checks</div>" in response
for f in [
"etc/check_mk/conf.d/wato/rules.mk",