Skip to content

Commit 8b2279c

Browse files
committed
chore(sap-open-concur): add unit-test
1 parent 548a55b commit 8b2279c

File tree

2 files changed

+685
-0
lines changed
  • check-plugins/sap-open-concur-com/unit-test

2 files changed

+685
-0
lines changed

check-plugins/sap-open-concur-com/unit-test/run

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ class TestCheck(unittest.TestCase):
6464
self.assertEqual(stderr, '')
6565
self.assertEqual(retc, STATE_UNKNOWN)
6666

67+
def test_if_check_runs_EXAMPLE01(self):
68+
stdout, stderr, retc = lib.base.coe(lib.shell.shell_exec(self.check + ' --datacenter=eu --test=stdout/EXAMPLE01,,0'))
69+
self.assertIn('Travel: disruption [CRITICAL] (@eu, UTC+0200)', stdout)
70+
self.assertEqual(stderr, '')
71+
self.assertEqual(retc, STATE_CRIT)
6772

6873

6974
if __name__ == '__main__':

0 commit comments

Comments
 (0)