Module: check_mk
Branch: master
Commit: 4990cb5732b3223689c1fb2452a1f9437ae415e9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4990cb5732b322…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Fri Feb 22 11:12:52 2019 +0100
mssql_tablespaces: add test
Change-Id: I3cd4bb34e26b265dcc0a6b551269923f7f386eea
---
.../datasets/mssql_tablespaces_regression.py | 30 ++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/tests/unit/checks/generictests/datasets/mssql_tablespaces_regression.py
b/tests/unit/checks/generictests/datasets/mssql_tablespaces_regression.py
new file mode 100644
index 0000000..0595dbd
--- /dev/null
+++ b/tests/unit/checks/generictests/datasets/mssql_tablespaces_regression.py
@@ -0,0 +1,30 @@
+# yapf: disable
+
+checkname = 'mssql_tablespaces'
+
+
+info = [
+ ['MSSQL_SQLEXPRESS', 'master', '5.25', 'MB',
'1.59', 'MB', '2464',
+ 'KB', '1096', 'KB', '1024', 'KB',
'344', 'KB'],
+]
+
+
+discovery = {
+ '': [
+ ('MSSQL_SQLEXPRESS master', {}),
+ ],
+}
+
+
+checks = {
+ '': [
+ ('MSSQL_SQLEXPRESS master', {}, [
+ (0, 'Size: 5.25 MB', [('size', 5505024.0, None, None, None,
None)]),
+ (0, 'Unallocated space: 1.59 MB, 30.3%', []),
+ (0, 'Reserved space: 2.41 MB, 45.8%', []),
+ (0, 'Data: 1.07 MB, 20.4%', []),
+ (0, 'Indexes: 1.00 MB, 19.0%', []),
+ (0, 'Unused: 344.00 kB, 6.4%', []),
+ ]),
+ ],
+}