aboutsummaryrefslogtreecommitdiff
path: root/plugins/tests/check_http.t
diff options
context:
space:
mode:
authorGravatar Thomas Guyot-Sionnest <dermoth@aei.ca> 2009-03-17 03:39:12 -0400
committerGravatar Thomas Guyot-Sionnest <dermoth@aei.ca> 2009-03-18 03:34:25 -0400
commitd41a33a434558189300113c28b26e2d3d681d390 (patch)
tree2966359be8ecb1b7eb8da172e5655f5233d34f8d /plugins/tests/check_http.t
parent9a05e9789017c03d192238c0337bc019838c52d4 (diff)
downloadmonitoring-plugins-d41a33a434558189300113c28b26e2d3d681d390.tar.gz
Add timezone support and fix checks around cert expiration
Diffstat (limited to 'plugins/tests/check_http.t')
-rwxr-xr-xplugins/tests/check_http.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/tests/check_http.t b/plugins/tests/check_http.t
index d7f4148c..0a1b0bc8 100755
--- a/plugins/tests/check_http.t
+++ b/plugins/tests/check_http.t
@@ -163,18 +163,18 @@ 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 will expire on 03/03/2019 21:41.', "output ok" );
+ is( $result->output, 'OK - Certificate will expire on 03/03/2019 21:41 GMT.', "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 expires in \d+ day\(s\) \(03/03/2019 21:41\)./', "output ok" );
+ like( $result->output, '/WARNING - Certificate expires in \d+ day\(s\) \(03/03/2019 21:41 GMT\)./', "output ok" );
# Expired cert tests
$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 expired on 03/05/2009 00:13.',
+ 'CRITICAL - Certificate expired on 03/05/2009 00:13 GMT.',
"output ok" );
}