From e340b0db7378741bd956409c7f1cda599f159a11 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Tue, 7 Mar 2006 10:33:00 +0000 Subject: 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 --- plugins/t/check_http.t | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'plugins/t') diff --git a/plugins/t/check_http.t b/plugins/t/check_http.t index 598a423f..9b90fd06 100644 --- a/plugins/t/check_http.t +++ b/plugins/t/check_http.t @@ -25,7 +25,7 @@ my $hostname_invalid = getTestParameter( "NP_HOSTNAME_INVALID", "An invalid (not known to DNS) hostname", "nosuchhost"); -plan tests => 6; +plan tests => 8; $res = NPTest->testCmd( @@ -46,3 +46,12 @@ $res = NPTest->testCmd( cmp_ok( $res->return_code, '==', 2, "Webserver $hostname_invalid not valid" ); like( $res->output, "/Name or service not known.*/", "Output OK"); +$res = NPTest->testCmd( + "./check_http --ssl www.verisign.com" + ); +cmp_ok( $res->return_code, '==', 0, "Can read https for www.verisign.com" ); + +$res = NPTest->testCmd( + "./check_http --ssl www.e-paycobalt.com" + ); +cmp_ok( $res->return_code, "==", 0, "Can read https for www.e-paycobalt.com (uses AES certificate)" ); -- cgit v1.2.3-74-g34f1