Module: check_mk
Branch: master
Commit: 455193d206e72bf72f580aef9ed71c1f2929084f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=455193d206e72b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jan 18 09:02:51 2019 +0100
Fixed side effect of local_test_host fixture breaking test_get_graph_api test
Change-Id: I7a91dfe427b9fff0f0d59b3a092e19052d85552c
---
tests/integration/cmk/gui/test_webapi.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/integration/cmk/gui/test_webapi.py
b/tests/integration/cmk/gui/test_webapi.py
index 83f6e5e..64e9fdf 100644
--- a/tests/integration/cmk/gui/test_webapi.py
+++ b/tests/integration/cmk/gui/test_webapi.py
@@ -24,7 +24,8 @@ def local_test_host(web, site):
site.write_file(
"etc/check_mk/conf.d/test-host.mk",
- "datasource_programs.append(('cat
~/var/check_mk/agent_output/<HOST>', [], ALL_HOSTS))\n")
+ "datasource_programs.append(('cat
~/var/check_mk/agent_output/<HOST>', [], ['test-host']))\n"
+ )
site.makedirs("var/check_mk/agent_output/")
site.write_file(
@@ -33,6 +34,7 @@ def local_test_host(web, site):
yield
web.delete_host("test-host")
+ site.delete_file("etc/check_mk/conf.d/test-host.mk")
def test_global_settings(site, web):