Module: check_mk
Branch: master
Commit: 95492a215896d42e30b08b35cf77c3a81508bb7b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=95492a215896d4…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Fri Feb 22 09:12:52 2019 +0100
mssql_backup: add test
Change-Id: Icad36b53a6c2c7bc23f57f4468f1442944737fe7
---
.../datasets/mssql_backup_regression.py | 26 ++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/tests/unit/checks/generictests/datasets/mssql_backup_regression.py
b/tests/unit/checks/generictests/datasets/mssql_backup_regression.py
new file mode 100644
index 0000000..c4edb74
--- /dev/null
+++ b/tests/unit/checks/generictests/datasets/mssql_backup_regression.py
@@ -0,0 +1,26 @@
+# yapf: disable
+
+checkname = "mssql_backup"
+
+
+info = [
+ ['MSSQL_SQL0x4', 'master', '2016-07-08 20:20:27',
'D'],
+ ['MSSQL_SQL0x4', 'model', '2016-07-08 20:20:28',
'D'],
+ ['MSSQL_SQL0x4', 'model', '2016-07-12 09:09:42',
'L'],
+ ['MSSQL_SQL0x4', 'model', '2016-07-11 20:20:07',
'I'],
+ ['MSSQL_SQL0x4', 'msdb', '2016-07-08', '20:20:43',
'D'],
+ ['MSSQL_SQL0x4', 'msdb', '-', '-', '-',
'no backup found'],
+ ['MSSQL_SQL0x4', 'foo'],
+ ['MSSQL_SQL0x4', 'bar', '12345678'],
+]
+
+
+discovery = {
+ '': [
+ ("MSSQL_SQL0x4 master", {}),
+ ("MSSQL_SQL0x4 model", {}),
+ ("MSSQL_SQL0x4 msdb", {}),
+ ("MSSQL_SQL0x4 bar", {}),
+ ],
+ 'per_type': [],
+}