Module: check_mk
Branch: master
Commit: dff619c9b6025dfe3758b47881398384cef3c34c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=dff619c9b6025d…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Jan 29 16:53:45 2019 +0100
fixed another integration test
Change-Id: I7cfa23593d02589a180469567b5fb4e069755795
---
tests/integration/cmk_base/test_data_sources.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tests/integration/cmk_base/test_data_sources.py
b/tests/integration/cmk_base/test_data_sources.py
index d6930b3..a6e1aa6 100644
--- a/tests/integration/cmk_base/test_data_sources.py
+++ b/tests/integration/cmk_base/test_data_sources.py
@@ -527,7 +527,12 @@ def test_data_sources_of_hosts(clear_config_caches, monkeypatch):
all_hosts = [("%s|%s" % (name, h["tags"])) for name, h in hosts]
monkeypatch.setattr(config, "all_hosts", all_hosts)
- monkeypatch.setattr(config, "host_paths", dict((name, "/") for
name, h in hosts))
+
+ import copy
+ changed_hosts_paths = copy.deepcopy(config.host_paths)
+ for name, _h in hosts:
+ changed_hosts_paths[name] = "/"
+ monkeypatch.setattr(config, "host_paths", changed_hosts_paths)
monkeypatch.setattr(config, "datasource_programs", [
('echo 1', [], ['ds-host-14', 'all-agents-host',
'all-special-host'], {}),