Module: check_mk
Branch: master
Commit: 47b014337f549f4411f87108f4a3a7e3b28d2a5a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=47b014337f549f…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Apr 3 08:51:05 2018 +0200
Adapted tests to latest EC changes.
Change-Id: I3ad91d290604f11e194d32b3fce0c0390d5f9c75
---
tests/integration/cmk/ec/test_mkeventd_status.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/integration/cmk/ec/test_mkeventd_status.py
b/tests/integration/cmk/ec/test_mkeventd_status.py
index acff3f5..511a88c 100644
--- a/tests/integration/cmk/ec/test_mkeventd_status.py
+++ b/tests/integration/cmk/ec/test_mkeventd_status.py
@@ -53,9 +53,9 @@ def config(settings):
@pytest.fixture(scope="function")
-def status_server(settings):
- cmk.ec.main.g_status_server = cmk.ec.main.StatusServer(settings)
- return cmk.ec.main.g_status_server
+def perfcounters():
+ cmk.ec.main.g_perfcounters = cmk.ec.main.Perfcounters()
+ return cmk.ec.main.g_perfcounters
@pytest.fixture(scope="function")
@@ -65,9 +65,9 @@ def event_status(settings):
@pytest.fixture(scope="function")
-def perfcounters():
- cmk.ec.main.g_perfcounters = cmk.ec.main.Perfcounters()
- return cmk.ec.main.g_perfcounters
+def status_server(settings, perfcounters, event_status):
+ cmk.ec.main.g_status_server = cmk.ec.main.StatusServer(settings, perfcounters,
event_status)
+ return cmk.ec.main.g_status_server
def test_handle_client(status_server, event_status):