[Nagiosplug-checkins] nagiosplug/plugins/t check_imap.t,1.2,1.3

Ton Voon tonvoon at users.sourceforge.net
Fri Nov 4 01:39:45 CET 2005


Update of /cvsroot/nagiosplug/nagiosplug/plugins/t
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7308/plugins/t

Modified Files:
	check_imap.t 
Log Message:
Fixed --mismatch option for check_tcp. Added tests into check_imap
(Rick Fey - 1339134)


Index: check_imap.t
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/t/check_imap.t,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- check_imap.t	25 Jul 2005 01:47:14 -0000	1.2
+++ check_imap.t	4 Nov 2005 09:38:24 -0000	1.3
@@ -10,7 +10,7 @@
 use NPTest;
 
 use vars qw($tests);
-BEGIN {$tests = 5; plan tests => $tests}
+BEGIN {$tests = 7; plan tests => $tests}
 
 my $host_tcp_smtp      = getTestParameter( "host_tcp_smtp",      "NP_HOST_TCP_SMTP",      "mailhost",
 					   "A host providing an STMP Service (a mail server)");
@@ -33,6 +33,8 @@
 $t += checkCmd( "./check_imap    $host_tcp_imap -p 143 -wt 9 -ct 9 -to 10 -e '* OK'", 0, undef, %exceptions );
 $t += checkCmd( "./check_imap    $host_nonresponsive", 2 );
 $t += checkCmd( "./check_imap    $hostname_invalid",   2 );
+$t += checkCmd( "./check_imap -H $host_tcp_imap -e unlikely_string",                  1);
+$t += checkCmd( "./check_imap -H $host_tcp_imap -e unlikely_string -M crit",          2);
 
 
 exit(0) if defined($Test::Harness::VERSION);





More information about the Commits mailing list