Module: check_mk
Branch: master
Commit: 32616506f0f6b3eb553d8744b1996d2cd90cb4c6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=32616506f0f6b3…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Dec 13 16:39:57 2017 +0100
test_statgrab_cpu_check: Fix test data
Change-Id: Ieb5b4b46e4dc5168fedb79e208049ca2c9008764
---
tests/checks/test_statgrab_cpu_check.py | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/tests/checks/test_statgrab_cpu_check.py
b/tests/checks/test_statgrab_cpu_check.py
index fe3ea1a..71a7460 100644
--- a/tests/checks/test_statgrab_cpu_check.py
+++ b/tests/checks/test_statgrab_cpu_check.py
@@ -7,19 +7,19 @@ pytestmark = pytest.mark.checks
@pytest.mark.parametrize("timepoints,time_to_info,params,expected_results", [
([60],lambda t: [[u'ctxsw', u'%d' % int(t*50)],
- [u'idle', int(t*50)],
- [u'intrs',int(t*50)],
- [u'iowait',int(t*50)],
- [u'kernel',int(t*50)],
- [u'nice',int(t*50)],
- [u'nvctxsw',int(t*50)],
- [u'softintrs',int(t*50)],
- [u'swap',int(t*50)],
- [u'syscalls',int(t*50)],
- [u'systime',int(t*50)],
- [u'total',int(t*50)],
- [u'user',int(t*50)],
- [u'vctxsw',int(t*50)]],
+ [u'idle', u'%d' % int(t*50)],
+ [u'intrs', u'%d' % int(t*50)],
+ [u'iowait', u'%d' % int(t*50)],
+ [u'kernel', u'%d' % int(t*50)],
+ [u'nice', u'%d' % int(t*50)],
+ [u'nvctxsw', u'%d' % int(t*50)],
+ [u'softintrs', u'%d' % int(t*50)],
+ [u'swap', u'%d' % int(t*50)],
+ [u'syscalls', u'%d' % int(t*50)],
+ [u'systime', u'%d' % int(t*50)],
+ [u'total', u'%d' % int(t*50)],
+ [u'user', u'%d' % int(t*50)],
+ [u'vctxsw', u'%d' % int(t*50)]],
{}, None),
])
def test_statgrab_cpu_check(check_manager, monkeypatch, timepoints, time_to_info, params,
expected_results):