Module: check_mk
Branch: master
Commit: e2342924a057a50dc1bf4a71f5d304963909f44f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e2342924a057a5…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Thu Apr 4 10:51:33 2019 +0200
mongodb_mem: add test
Change-Id: I6b5cceeaf48433e837deb725a15c1b0689a9dd49
---
.../datasets/mongodb_mem_1_regression.py | 31 ++++++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/tests/unit/checks/generictests/datasets/mongodb_mem_1_regression.py
b/tests/unit/checks/generictests/datasets/mongodb_mem_1_regression.py
new file mode 100644
index 0000000..93553fc
--- /dev/null
+++ b/tests/unit/checks/generictests/datasets/mongodb_mem_1_regression.py
@@ -0,0 +1,31 @@
+# yapf: disable
+
+
+checkname = 'mongodb_mem'
+
+
+info = [['resident', '856'],
+ ['supported', 'True'],
+ ['virtual', '6100'],
+ ['mappedWithJournal', '5374'],
+ ['mapped', '2687'],
+ ['bits', '64'],
+ ['note', 'fields', 'vary', 'by',
'platform'],
+ ['page_faults', '86'],
+ ['heap_usage_bytes', '65501032']]
+
+
+discovery = {'': [(None, {})]}
+
+
+checks = {'': [(None,
+ {},
+ [(0,
+ 'Resident usage: 856.00 MB',
+ [('process_resident_size', 897581056, None, None, None,
None)]),
+ (0,
+ 'Virtual usage: 5.96 GB',
+ [('process_virtual_size', 6396313600, None, None, None,
None)]),
+ (0,
+ 'Mapped usage: 2.62 GB',
+ [('process_mapped_size', 2817523712, None, None, None,
None)])])]}
\ No newline at end of file