[PATCH 1/1] Additional command link for SCHEDULE_HOST_SVC_DOWNTIME in extinfo.c

Hendrik Baecker andurin at process-zero.de
Wed Sep 16 18:42:52 CEST 2009


Small fix for the fix...

Please apply this patch for the patch.

diff --git a/t/622extinfo-local.t b/t/622extinfo-local.t
index dae8289..70a7f7a 100644
--- a/t/622extinfo-local.t
+++ b/t/622extinfo-local.t
@@ -14,12 +14,14 @@ my $cgi_dir = "$topdir/cgi";
 my $extinfo_cgi = "$cgi_dir/extinfo.cgi";

 my $output;
+my $remote_user = "REMOTE_USER=nagiosadmin";
+

 plan tests => 2;

-$output = `NAGIOS_CGI_CONFIG=etc/cgi.cfg REQUEST_METHOD=GET $extinfo_cgi`;
+$output = `NAGIOS_CGI_CONFIG=etc/cgi.cfg $remote_user
REQUEST_METHOD=GET $extinfo_cgi`;
 like( $output, "/Process Information/", "extinfo.cgi without params
show the process information" );

-$output = `NAGIOS_CGI_CONFIG=etc/cgi.cfg REQUEST_METHOD=GET
QUERY_STRING='&type=1&host=host1' $extinfo_cgi`;
+$output = `NAGIOS_CGI_CONFIG=etc/cgi.cfg $remote_user
REQUEST_METHOD=GET QUERY_STRING='type=1&host=host1' $extinfo_cgi`;
 like( $output, "/Schedule downtime for this host and all Services/",
"extinfo.cgi allows us to set downtime for a host and all of his
services" );



------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf




More information about the Developers mailing list