diff options
author | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-03-18 22:21:00 -0400 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@aei.ca> | 2009-03-19 01:04:33 -0400 |
commit | 37e432ec776cda34e0e410fe5c75eb3b4871f74c (patch) | |
tree | bcf99b0af8c4ddd4a052e40006936a616954f877 /plugins/tests | |
parent | ead340235ef352674a0033633dc913be5efc292b (diff) | |
download | monitoring-plugins-37e432ec776cda34e0e410fe5c75eb3b4871f74c.tar.gz |
Revert "Add timezone support and fix checks around cert expiration" (keep the expiration fix)
This reverts commit d41a33a434558189300113c28b26e2d3d681d390.
Diffstat (limited to 'plugins/tests')
-rwxr-xr-x | plugins/tests/check_http.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/tests/check_http.t b/plugins/tests/check_http.t index 0a1b0bc8..d7f4148c 100755 --- a/plugins/tests/check_http.t +++ b/plugins/tests/check_http.t | |||
@@ -163,18 +163,18 @@ SKIP: { | |||
163 | 163 | ||
164 | $result = NPTest->testCmd( "$command -p $port_https -S -C 14" ); | 164 | $result = NPTest->testCmd( "$command -p $port_https -S -C 14" ); |
165 | is( $result->return_code, 0, "$command -p $port_https -S -C 14" ); | 165 | is( $result->return_code, 0, "$command -p $port_https -S -C 14" ); |
166 | is( $result->output, 'OK - Certificate will expire on 03/03/2019 21:41 GMT.', "output ok" ); | 166 | is( $result->output, 'OK - Certificate will expire on 03/03/2019 21:41.', "output ok" ); |
167 | 167 | ||
168 | $result = NPTest->testCmd( "$command -p $port_https -S -C 14000" ); | 168 | $result = NPTest->testCmd( "$command -p $port_https -S -C 14000" ); |
169 | is( $result->return_code, 1, "$command -p $port_https -S -C 14000" ); | 169 | is( $result->return_code, 1, "$command -p $port_https -S -C 14000" ); |
170 | like( $result->output, '/WARNING - Certificate expires in \d+ day\(s\) \(03/03/2019 21:41 GMT\)./', "output ok" ); | 170 | like( $result->output, '/WARNING - Certificate expires in \d+ day\(s\) \(03/03/2019 21:41\)./', "output ok" ); |
171 | 171 | ||
172 | 172 | ||
173 | # Expired cert tests | 173 | # Expired cert tests |
174 | $result = NPTest->testCmd( "$command -p $port_https_expired -S -C 7" ); | 174 | $result = NPTest->testCmd( "$command -p $port_https_expired -S -C 7" ); |
175 | is( $result->return_code, 2, "$command -p $port_https_expired -S -C 7" ); | 175 | is( $result->return_code, 2, "$command -p $port_https_expired -S -C 7" ); |
176 | is( $result->output, | 176 | is( $result->output, |
177 | 'CRITICAL - Certificate expired on 03/05/2009 00:13 GMT.', | 177 | 'CRITICAL - Certificate expired on 03/05/2009 00:13.', |
178 | "output ok" ); | 178 | "output ok" ); |
179 | 179 | ||
180 | } | 180 | } |