[Nagiosplug-checkins] CVS: nagiosplug/plugins/t check_http.t,1.1.1.1,1.2

Ton Voon tonvoon at users.sourceforge.net
Sat May 17 10:41:06 CEST 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins/t
In directory sc8-pr-cvs1:/tmp/cvs-serv13800/t

Modified Files:
	check_http.t 
Log Message:
Fixed tests (Mathew Ericson - 738608)


Index: check_http.t
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/t/check_http.t,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** check_http.t	28 Feb 2002 06:43:00 -0000	1.1.1.1
--- check_http.t	17 May 2003 17:40:15 -0000	1.2
***************
*** 14,18 ****
  $str = `./check_http $Cache::hostname -wt 300 -ct 600`;
  $t += ok $?>>8,0;
! $t += ok $str, '/HTTP\/1.1 [0-9]{3} (OK|Found) - [0-9]+ second response time/';
  
  $str = `./check_http $Cache::nullhost -wt 1 -ct 2`;
--- 14,18 ----
  $str = `./check_http $Cache::hostname -wt 300 -ct 600`;
  $t += ok $?>>8,0;
! $t += ok $str, '/(HTTP\s[o|O][k|K]\s)?\s?HTTP\/1.[01]\s[0-9]{3}\s(OK|Found)\s-\s+([0-9]+|[0-9]+\.[0-9]+)\ssecond response time/';
  
  $str = `./check_http $Cache::nullhost -wt 1 -ct 2`;





More information about the Commits mailing list