aboutsummaryrefslogtreecommitdiff
path: root/plugins/tests/check_http.t
diff options
context:
space:
mode:
authorGravatar Sven Nierlein <sven@nierlein.de> 2016-11-11 09:43:13 +0100
committerGravatar Sven Nierlein <sven@nierlein.de> 2016-11-11 09:43:13 +0100
commit6cd50bc42cb4b25a3c0f7153df7f83b7262f404b (patch)
treedd24152e547c7415f91b2a5b641dc32061f1e66d /plugins/tests/check_http.t
parent2233b7aa7545ff1e66264611270473b44e6ffdf5 (diff)
downloadmonitoring-plugins-6cd50bc42cb4b25a3c0f7153df7f83b7262f404b.tar.gz
adopt http test to changed ssl expire date output
Signed-off-by: Sven Nierlein <sven@nierlein.de>
Diffstat (limited to 'plugins/tests/check_http.t')
-rwxr-xr-xplugins/tests/check_http.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/tests/check_http.t b/plugins/tests/check_http.t
index 5984d489..3aaac8b7 100755
--- a/plugins/tests/check_http.t
+++ b/plugins/tests/check_http.t
@@ -186,21 +186,21 @@ SKIP: {
$result = NPTest->testCmd( "$command -p $port_https -S -C 14" );
is( $result->return_code, 0, "$command -p $port_https -S -C 14" );
- is( $result->output, 'OK - Certificate \'Ton Voon\' will expire on Sun Mar 3 21:41:28 2019 +0000.', "output ok" );
+ is( $result->output, 'OK - Certificate \'Ton Voon\' will expire on Sun 03 Mar 2019 09:41:28 PM GMT +0000.', "output ok" );
$result = NPTest->testCmd( "$command -p $port_https -S -C 14000" );
is( $result->return_code, 1, "$command -p $port_https -S -C 14000" );
- like( $result->output, '/WARNING - Certificate \'Ton Voon\' expires in \d+ day\(s\) \(Sun Mar 3 21:41:28 2019 \+0000\)./', "output ok" );
+ like( $result->output, '/WARNING - Certificate \'Ton Voon\' expires in \d+ day\(s\) \(Sun 03 Mar 2019 09:41:28 PM GMT \+0000\)\./', "output ok" );
# Expired cert tests
$result = NPTest->testCmd( "$command -p $port_https -S -C 13960,14000" );
is( $result->return_code, 2, "$command -p $port_https -S -C 13960,14000" );
- like( $result->output, '/CRITICAL - Certificate \'Ton Voon\' expires in \d+ day\(s\) \(Sun Mar 3 21:41:28 2019 \+0000\)./', "output ok" );
+ like( $result->output, '/CRITICAL - Certificate \'Ton Voon\' expires in \d+ day\(s\) \(Sun 03 Mar 2019 09:41:28 PM GMT \+0000\)./', "output ok" );
$result = NPTest->testCmd( "$command -p $port_https_expired -S -C 7" );
is( $result->return_code, 2, "$command -p $port_https_expired -S -C 7" );
is( $result->output,
- 'CRITICAL - Certificate \'Ton Voon\' expired on Thu Mar 5 00:13:16 2009 +0000.',
+ 'CRITICAL - Certificate \'Ton Voon\' expired on Thu 05 Mar 2009 12:13:16 AM GMT +0000.',
"output ok" );
}