Module: check_mk
Branch: master
Commit: 878771c91a63ba4a0889a06cc253abc4371fd295
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=878771c91a63ba…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Fri Aug 31 08:34:31 2018 +0200
df: add test for inode section where the inode count is '-'
Change-Id: Ie44e27cf1e5e8212ad59ecc192b0dfaab3ef88f5
---
tests/unit/checks/test_df_check.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/unit/checks/test_df_check.py b/tests/unit/checks/test_df_check.py
index 4d25bdc..76e1842 100644
--- a/tests/unit/checks/test_df_check.py
+++ b/tests/unit/checks/test_df_check.py
@@ -212,6 +212,12 @@ info_solaris_zfs = [
[u'zfs', u'is', u'hashed', u'(/usr/sbin/zfs)'],
]
+info_empty_inodes = [
+ [u'[df_inodes_start]'],
+ [u'/dev/mapper/vgdns-lvbindauthlog', u'-', u'-',
u'-', u'-', u'-', u'/dns/bindauth/log'],
+ [u'[df_inodes_end]'],
+]
+
#.
# .--Test functions------------------------------------------------------.
# | _____ _ __ _ _ |
@@ -245,6 +251,7 @@ info_solaris_zfs = [
(info_df_btrfs, [(u'/dev/sda1 btrfs /dev/sda1', {})],
{
"include_volume_name" : True }), # btrfs w/ volume name option
(info_solaris_zfs, [], {}),
# ignore filensystems without size
+ (info_empty_inodes, [], {})
])
def test_df_discovery_with_parse(check_manager, info, expected_result,
inventory_df_rules):