Module: check_mk
Branch: master
Commit: 9483d70ee0d8d5d4dc7f2583eeb029542111b68f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9483d70ee0d8d5…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Wed Nov 29 11:33:23 2017 +0100
test_df_check_with_parse: Add test cases for Windows, btrfs and variant items that include
the volume name
Change-Id: I744082057694e67f65a36f424c469b5c8cae192b
---
tests/checks/test_df_check.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/checks/test_df_check.py b/tests/checks/test_df_check.py
index 06d5b65..bc1f24e 100644
--- a/tests/checks/test_df_check.py
+++ b/tests/checks/test_df_check.py
@@ -241,7 +241,11 @@ def test_df_discovery_with_parse(check_manager, monkeypatch, info,
expected_resu
# TODO: Make this work by finding a way to get a check's default levels in this
context.
@pytest.mark.parametrize("item,params,info,expected_result", [
- (u"/", "default", info_df_lnx, {})
+ (u"/", "default", info_df_lnx, {}),
+ (u'/dev/sda4 /', "default", info_df_lnx, {}),
+ (u'E:/', "default", info_df_win, {}),
+ (u'New_Volume E:/', "default", info_df_win, {}),
+ (u'btrfs /dev/sda1', "default", info_df_btrfs, {}),
])
def test_df_check_with_parse(check_manager, monkeypatch, item, params, info,
expected_result):
check = check_manager.get_check("df")