summaryrefslogtreecommitdiffstats
path: root/plugins/t/check_snmp.t
diff options
context:
space:
mode:
authorSven Nierlein <sven@nierlein.org>2017-03-13 10:47:52 (GMT)
committerGitHub <noreply@github.com>2017-03-13 10:47:52 (GMT)
commitc810dd0dfc9c42035c514af6606f8d6471c4e7d4 (patch)
tree535867da963dd4faad93b0448d15e086f1906612 /plugins/t/check_snmp.t
parent9daeceaed39b04e79ba364e311e0532e4fdf711f (diff)
parent77aa6d4ebf1bd3567395c92b9e5cc9daa74e9838 (diff)
downloadmonitoring-plugins-c810dd0dfc9c42035c514af6606f8d6471c4e7d4.tar.gz
Merge pull request #1469 from sni/master
make tests more reliable
Diffstat (limited to 'plugins/t/check_snmp.t')
-rw-r--r--plugins/t/check_snmp.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/t/check_snmp.t b/plugins/t/check_snmp.t
index eff46ea..9a6cd2b 100644
--- a/plugins/t/check_snmp.t
+++ b/plugins/t/check_snmp.t
@@ -154,9 +154,9 @@ SKIP: {
154 cmp_ok( $res->return_code, '==', 0, "Timetick used as a string"); 154 cmp_ok( $res->return_code, '==', 0, "Timetick used as a string");
155 like($res->output, '/^SNMP OK - Timeticks:\s\(\d+\)\s+(?:\d+ days?,\s+)?\d+:\d+:\d+\.\d+\s.*$/', "Timetick used as a string, result printed rather than parsed"); 155 like($res->output, '/^SNMP OK - Timeticks:\s\(\d+\)\s+(?:\d+ days?,\s+)?\d+:\d+:\d+\.\d+\s.*$/', "Timetick used as a string, result printed rather than parsed");
156 156
157 $res = NPTest->testCmd( "./check_snmp -H $host_snmp -C $snmp_community -o HOST-RESOURCES-MIB::hrSWRunParameters.1"); 157 $res = NPTest->testCmd( "./check_snmp -H $host_snmp -C $snmp_community -o HOST-RESOURCES-MIB::hrSWRunName.1");
158 cmp_ok( $res->return_code, '==', 0, "Timetick used as a string"); 158 cmp_ok( $res->return_code, '==', 0, "snmp response without datatype");
159 is( $res->output, 'SNMP OK - "" | ', "snmp response without datatype" ); 159 like( $res->output, '/^SNMP OK - "(systemd|init)" \| $/', "snmp response without datatype" );
160} 160}
161 161
162SKIP: { 162SKIP: {