Module: check_mk
Branch: master
Commit: 7a2f088b80a20367bfae7a62ee9eb40dbe255b5c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7a2f088b80a203…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Tue Nov 7 14:04:05 2017 +0100
df: Rudimentary test for discovery
Change-Id: I40a50491a8a09088ee7dbd66a7bb60c58686db6f
---
tests/checks/test_df.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/tests/checks/test_df.py b/tests/checks/test_df.py
new file mode 100644
index 0000000..10386e5
--- /dev/null
+++ b/tests/checks/test_df.py
@@ -0,0 +1,11 @@
+import pytest
+
+pytestmark = pytest.mark.check
+
+(a)pytest.mark.parametrize("info,result"sult", [
+ ([], [])
+])
+def test_df_discovery_with_parse(check_manager, info, result):
+ check = check_manager.get_check("df")
+ assert check.run_discovery(check.run_parse(info)) == result
+