Module: check_mk
Branch: master
Commit: ac87f742b969a98da04458d8162f8d0cc88cff74
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ac87f742b969a9…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon May 8 13:20:14 2017 +0200
Fixed default credentials in tests
Change-Id: I806107914b4b58a8edfc202b7936bbf2338d7230
---
tests/testlib/__init__.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index c1c20a9..36aa4a2 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -306,7 +306,9 @@ class Site(object):
if not self.exists():
p = subprocess.Popen(["/usr/bin/sudo", "/usr/bin/omd",
"-V", self.version.version_directory(),
- "create", "--apache-reload",
self.id])
+ "create",
+ "--admin-password", "cmk",
+ "--apache-reload", self.id])
assert p.wait() == 0
assert os.path.exists("/omd/sites/%s" % self.id)
@@ -833,7 +835,7 @@ class CMKWebSession(WebSession):
self.site.apache_port, path)
- def login(self, username="omdadmin", password="omd"):
+ def login(self, username="cmkadmin", password="cmk"):
login_page = self.get("", allow_redirect_to_login=True).text
assert "_username" in login_page, "_username not found on login
page - page broken?"
assert "_password" in login_page