summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSven Nierlein <sven@nierlein.de>2016-11-11 10:52:36 +0100
committerSven Nierlein <sven@nierlein.de>2016-11-11 10:52:36 +0100
commitf938327b495dab1f7543411aa3ecd8a384f8e2c3 (patch)
tree5584990e24a8af48eb339293419375db2983233c /plugins
parent3bdf392ae57f35fabce9bffc84b119a1d656ff32 (diff)
downloadmonitoring-plugins-f938327b495dab1f7543411aa3ecd8a384f8e2c3.tar.gz
Revert "adopt http test to changed ssl expire date output"
This reverts commit 6cd50bc42cb4b25a3c0f7153df7f83b7262f404b.
Diffstat (limited to 'plugins')
-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 ec0f0857..1bc0ecb7 100755
--- a/plugins/tests/check_http.t
+++ b/plugins/tests/check_http.t
@@ -188,21 +188,21 @@ SKIP: {
188 188
189 $result = NPTest->testCmd( "$command -p $port_https -S -C 14" ); 189 $result = NPTest->testCmd( "$command -p $port_https -S -C 14" );
190 is( $result->return_code, 0, "$command -p $port_https -S -C 14" ); 190 is( $result->return_code, 0, "$command -p $port_https -S -C 14" );
191 is( $result->output, 'OK - Certificate \'Ton Voon\' will expire on Sun 03 Mar 2019 09:41:28 PM GMT +0000.', "output ok" ); 191 is( $result->output, 'OK - Certificate \'Ton Voon\' will expire on Sun Mar 3 21:41:28 2019 +0000.', "output ok" );
192 192
193 $result = NPTest->testCmd( "$command -p $port_https -S -C 14000" ); 193 $result = NPTest->testCmd( "$command -p $port_https -S -C 14000" );
194 is( $result->return_code, 1, "$command -p $port_https -S -C 14000" ); 194 is( $result->return_code, 1, "$command -p $port_https -S -C 14000" );
195 like( $result->output, '/WARNING - Certificate \'Ton Voon\' expires in \d+ day\(s\) \(Sun 03 Mar 2019 09:41:28 PM GMT \+0000\)\./', "output ok" ); 195 like( $result->output, '/WARNING - Certificate \'Ton Voon\' expires in \d+ day\(s\) \(Sun Mar 3 21:41:28 2019 \+0000\)./', "output ok" );
196 196
197 # Expired cert tests 197 # Expired cert tests
198 $result = NPTest->testCmd( "$command -p $port_https -S -C 13960,14000" ); 198 $result = NPTest->testCmd( "$command -p $port_https -S -C 13960,14000" );
199 is( $result->return_code, 2, "$command -p $port_https -S -C 13960,14000" ); 199 is( $result->return_code, 2, "$command -p $port_https -S -C 13960,14000" );
200 like( $result->output, '/CRITICAL - Certificate \'Ton Voon\' expires in \d+ day\(s\) \(Sun 03 Mar 2019 09:41:28 PM GMT \+0000\)./', "output ok" ); 200 like( $result->output, '/CRITICAL - Certificate \'Ton Voon\' expires in \d+ day\(s\) \(Sun Mar 3 21:41:28 2019 \+0000\)./', "output ok" );
201 201
202 $result = NPTest->testCmd( "$command -p $port_https_expired -S -C 7" ); 202 $result = NPTest->testCmd( "$command -p $port_https_expired -S -C 7" );
203 is( $result->return_code, 2, "$command -p $port_https_expired -S -C 7" ); 203 is( $result->return_code, 2, "$command -p $port_https_expired -S -C 7" );
204 is( $result->output, 204 is( $result->output,
205 'CRITICAL - Certificate \'Ton Voon\' expired on Thu 05 Mar 2009 12:13:16 AM GMT +0000.', 205 'CRITICAL - Certificate \'Ton Voon\' expired on Thu Mar 5 00:13:16 2009 +0000.',
206 "output ok" ); 206 "output ok" );
207 207
208} 208}