Module: check_mk
Branch: master
Commit: 37ef14d5d25c4d004e022eea02aa3eda7af7df98
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=37ef14d5d25c4d…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Fri May 3 09:10:41 2019 +0200
cisco_cpu_multiitem: add test
Change-Id: I4556039f04f8fd2c378b468f30f34e9c837033df
---
.../datasets/cisco_cpu_multiitem_regression.py | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/tests/unit/checks/generictests/datasets/cisco_cpu_multiitem_regression.py
b/tests/unit/checks/generictests/datasets/cisco_cpu_multiitem_regression.py
new file mode 100644
index 0000000..eb7f457
--- /dev/null
+++ b/tests/unit/checks/generictests/datasets/cisco_cpu_multiitem_regression.py
@@ -0,0 +1,18 @@
+# yapf: disable
+
+
+checkname = 'cisco_cpu_multiitem'
+
+
+info = [[[u'0', u'24']],
+ []]
+
+
+discovery = {'': [(u'0', {})]}
+
+
+checks = {'': [(u'0',
+ {'levels': (80.0, 90.0)},
+ [(0,
+ '24.0% utilization in the last 5 minutes',
+ [('util', 24.0, 80.0, 90.0, 0, 100)])])]}