Module: check_mk
Branch: master
Commit: 08833ef1b086ab01ea37f2b138adc5a6b88c1589
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=08833ef1b086ab…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Mon May 6 15:56:57 2019 +0200
ceph_status: add test
Change-Id: I352f05123fa20d09e4d908d5e18924c72b493fb5
---
.../generictests/datasets/ceph_status_new.py | 59 ++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/tests/unit/checks/generictests/datasets/ceph_status_new.py
b/tests/unit/checks/generictests/datasets/ceph_status_new.py
new file mode 100644
index 0000000..abfee2e
--- /dev/null
+++ b/tests/unit/checks/generictests/datasets/ceph_status_new.py
@@ -0,0 +1,59 @@
+# yapf: disable
+
+
+checkname = 'ceph_status'
+
+
+info = [['{'],
+ ['"fsid":',
'"f31a6bb1-27fc-4a47-ba8b-e7e06d0b1efa",'],
+ ['"health":', '{'],
+ ['"checks":', '{},'],
+ ['"status":', '"HEALTH_OK",'],
+ ['"summary":', '['],
+ ['{'],
+ ['"severity":', '"HEALTH_WARN",'],
+ ['"summary":',
+ '"\'ceph',
+ "health'",
+ 'JSON',
+ 'format',
+ 'has',
+ 'changed',
+ 'in',
+ 'luminous.',
+ 'If',
+ 'you',
+ 'see',
+ 'this',
+ 'your',
+ 'monitoring',
+ 'system',
+ 'is',
+ 'scraping',
+ 'the',
+ 'wrong',
+ 'fields.',
+ 'Disable',
+ 'this',
+ 'with',
+ "'mon",
+ 'health',
+ 'preluminous',
+ 'compat',
+ 'warning',
+ '=',
+ 'false\'"'],
+ ['}'],
+ ['],'],
+ ['"overall_status":', '"HEALTH_WARN"'],
+ ['},'],
+ ['"election_epoch":', '2020'],
+ ['}']]
+
+
+discovery = {'': [(None, {})], 'mgrs': [], 'osds': [],
'pgs': []}
+
+
+checks = {'': [(None,
+ {'epoch': (1, 3, 30)},
+ [(0, 'Status: OK', []), (0, 'Epoch: 0/30 m', [])])]}
\ No newline at end of file