diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2012-08-10 12:35:16 +0200 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2012-08-10 12:35:16 +0200 |
commit | 62d01df1fd8a0d54bb265b2234f3298d85381243 (patch) | |
tree | 0d4255a09ed2c728f4768ae42fefa5f1d532996b /plugins | |
parent | 08ca13aa0e6adc7c473030a156fb0c94455ed193 (diff) | |
download | monitoring-plugins-62d01df1fd8a0d54bb265b2234f3298d85381243.tar.gz |
tests/check_http.t: Fix test case
Fix the test case which is meant to make sure that
check_http -C <n>,<m> [...]
returns a CRITICAL state if <m> is large enough.
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/tests/check_http.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/tests/check_http.t b/plugins/tests/check_http.t index 8337f52a..ab4ab4fe 100755 --- a/plugins/tests/check_http.t +++ b/plugins/tests/check_http.t | |||
@@ -189,7 +189,7 @@ SKIP: { | |||
189 | like( $result->output, '/WARNING - Certificate \'Ton Voon\' expires in \d+ day\(s\) \(03/03/2019 21:41\)./', "output ok" ); | 189 | like( $result->output, '/WARNING - Certificate \'Ton Voon\' expires in \d+ day\(s\) \(03/03/2019 21:41\)./', "output ok" ); |
190 | 190 | ||
191 | $result = NPTest->testCmd( "$command -p $port_https -S -C 13960,14000" ); | 191 | $result = NPTest->testCmd( "$command -p $port_https -S -C 13960,14000" ); |
192 | is( $result->return_code, 1, "$command -p $port_https -S -C 139600,14000" ); | 192 | is( $result->return_code, 2, "$command -p $port_https -S -C 13960,14000" ); |
193 | like( $result->output, '/CRITICAL - Certificate \'Ton Voon\' expires in \d+ day\(s\) \(03/03/2019 21:41\)./', "output ok" ); | 193 | like( $result->output, '/CRITICAL - Certificate \'Ton Voon\' expires in \d+ day\(s\) \(03/03/2019 21:41\)./', "output ok" ); |
194 | 194 | ||
195 | # Expired cert tests | 195 | # Expired cert tests |