Module: check_mk
Branch: master
Commit: b9bbc5d06de008dc1dbddd13cc4e90484dc0fef7
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b9bbc5d06de008…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Sun Jan 28 16:11:32 2018 +0100
Tests for df: Adjust expected discovery result for btrfs - the current behaviour is
actually the correct one
Change-Id: Ie7cfde3a29ed33e317a69885acbb9083c2a0f12f
---
tests/checks/test_df_check.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/checks/test_df_check.py b/tests/checks/test_df_check.py
index ce8386e..bd0b8ff 100644
--- a/tests/checks/test_df_check.py
+++ b/tests/checks/test_df_check.py
@@ -237,8 +237,8 @@ info_df_btrfs = \
(info_df_lnx_tmpfs, [(u'tmpfs /opt/omd/sites/heute/tmp', {}), (u'tmpfs
/dev/shm', {})],
{ "ignore_fs_types" : [ 'nfs',
'smbfs', 'cifs', 'iso9660' ],
"include_volume_name" : True}),
# Including tmpfs and volume name
- (info_df_btrfs, [(u'/sys/fs/cgroup', {}), (u'btrfs /dev/sda1', {})],
{}), # btrfs
- (info_df_btrfs, [(u'/dev/sda1 /sys/fs/cgroup', {}), (u'/dev/sda1 btrfs
/dev/sda1', {})],
+ (info_df_btrfs, [(u'btrfs /dev/sda1', {})], {}),
# btrfs
+ (info_df_btrfs, [(u'/dev/sda1 btrfs /dev/sda1', {})],
{
"include_volume_name" : True }), # btrfs w/ volume name option
])
def test_df_discovery_with_parse(check_manager, monkeypatch, info, expected_result,
inventory_df_rules):