diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-07 10:33:00 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-03-07 10:33:00 (GMT) |
commit | e340b0db7378741bd956409c7f1cda599f159a11 (patch) | |
tree | 0c45b11c2db342a12244426270140cabdb09bb93 | |
parent | 7a4818fb1224b2dc3dbf5a8042ce650ad958ddc8 (diff) | |
download | monitoring-plugins-e340b0db7378741bd956409c7f1cda599f159a11.tar.gz |
Added tests for two external websites with certificates
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1321 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | plugins/t/check_http.t | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/t/check_http.t b/plugins/t/check_http.t index 598a423..9b90fd0 100644 --- a/plugins/t/check_http.t +++ b/plugins/t/check_http.t | |||
@@ -25,7 +25,7 @@ my $hostname_invalid = getTestParameter( "NP_HOSTNAME_INVALID", | |||
25 | "An invalid (not known to DNS) hostname", | 25 | "An invalid (not known to DNS) hostname", |
26 | "nosuchhost"); | 26 | "nosuchhost"); |
27 | 27 | ||
28 | plan tests => 6; | 28 | plan tests => 8; |
29 | 29 | ||
30 | 30 | ||
31 | $res = NPTest->testCmd( | 31 | $res = NPTest->testCmd( |
@@ -46,3 +46,12 @@ $res = NPTest->testCmd( | |||
46 | cmp_ok( $res->return_code, '==', 2, "Webserver $hostname_invalid not valid" ); | 46 | cmp_ok( $res->return_code, '==', 2, "Webserver $hostname_invalid not valid" ); |
47 | like( $res->output, "/Name or service not known.*/", "Output OK"); | 47 | like( $res->output, "/Name or service not known.*/", "Output OK"); |
48 | 48 | ||
49 | $res = NPTest->testCmd( | ||
50 | "./check_http --ssl www.verisign.com" | ||
51 | ); | ||
52 | cmp_ok( $res->return_code, '==', 0, "Can read https for www.verisign.com" ); | ||
53 | |||
54 | $res = NPTest->testCmd( | ||
55 | "./check_http --ssl www.e-paycobalt.com" | ||
56 | ); | ||
57 | cmp_ok( $res->return_code, "==", 0, "Can read https for www.e-paycobalt.com (uses AES certificate)" ); | ||