Module: check_mk
Branch: master
Commit: c0eaae079da4cb89163779596e26c9d84be9bcff
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c0eaae079da4cb…
Author: Florian Kromer <fk(a)mathias-kettner.de>
Date: Tue Apr 16 12:32:01 2019 +0200
netapp_api_vs_status: regression test
Change-Id: I6f76d28dc54f9e1c9291735887ccea994393c484
---
.../checks/generictests/datasets/netapp_api_vs_status.py | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/tests/unit/checks/generictests/datasets/netapp_api_vs_status.py
b/tests/unit/checks/generictests/datasets/netapp_api_vs_status.py
new file mode 100644
index 0000000..e5be4e1
--- /dev/null
+++ b/tests/unit/checks/generictests/datasets/netapp_api_vs_status.py
@@ -0,0 +1,14 @@
+# yapf: disable
+
+
+checkname = 'netapp_api_vs_status'
+
+
+info = [['kermit1_ng-mc', 'running'], ['bill_vm',
'stopped']]
+
+
+discovery = {'': [('bill_vm', None), ('kermit1_ng-mc', None)]}
+
+
+checks = {'': [('bill_vm', {}, [(2, 'State is stopped', [])]),
+ ('kermit1_ng-mc', {}, [(0, 'State is running', [])])]}
\ No newline at end of file