Module: check_mk
Branch: master
Commit: caafe13b400807b32ed7bba2b547159e5df1b148
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=caafe13b400807…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 25 15:35:38 2019 +0100
Fixed broken integration tests
Change-Id: I04c540c0033d82e28941b380710925c38ade97a8
---
tests/integration/cmk/gui/test_webapi.py | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/tests/integration/cmk/gui/test_webapi.py
b/tests/integration/cmk/gui/test_webapi.py
index 340c5e2..35847a7 100644
--- a/tests/integration/cmk/gui/test_webapi.py
+++ b/tests/integration/cmk/gui/test_webapi.py
@@ -28,9 +28,14 @@ def local_test_hosts(web, site):
}),
])
+ site.write_file(
+ "etc/check_mk/conf.d/local-test-hosts.mk",
+ "datasource_programs.append(('cat
~/var/check_mk/agent_output/<HOST>', [], ['test-host',
'test-host2']))\n"
+ )
+
for hostname in ["test-host", "test-host2"]:
site.write_file(
- "var/check_mk/agent_output/%s.mk" % hostname,
+ "var/check_mk/agent_output/%s" % hostname,
file(
"%s/tests/integration/cmk_base/test-files/linux-agent-output" %
repo_path()).read())
@@ -38,7 +43,8 @@ def local_test_hosts(web, site):
for hostname in ["test-host", "test-host2"]:
web.delete_host(hostname)
- site.delete_file("var/check_mk/agent_output/%s.mk" % hostname)
+ site.delete_file("var/check_mk/agent_output/%s" % hostname)
+ site.delete_file("etc/check_mk/conf.d/local-test-hosts.mk")
def test_global_settings(site, web):