Revision: 1899
http://nagiosplug.svn.sourceforge.net/nagiosplug/?rev=1899&view=rev
Author: dermoth
Date: 2008-01-08 03:35:06 -0800 (Tue, 08 Jan 2008)
Log Message:
-----------
more r1879 fixes
Modified Paths:
--------------
nagiosplug/trunk/plugins/t/check_imap.t
nagiosplug/trunk/plugins/t/check_jabber.t
nagiosplug/trunk/plugins/t/check_pop.t
Modified: nagiosplug/trunk/plugins/t/check_imap.t
===================================================================
--- nagiosplug/trunk/plugins/t/check_imap.t 2008-01-08 11:27:57 UTC (rev 1898)
+++ nagiosplug/trunk/plugins/t/check_imap.t 2008-01-08 11:35:06 UTC (rev 1899)
@@ -36,7 +36,7 @@
cmp_ok( $t->return_code, '==', 2, "Get error with non reponsive host" );
$t = NPTest->testCmd( "./check_imap $hostname_invalid" );
-cmp_ok( $t->return_code, '==', 2, "Invalid hostname" );
+cmp_ok( $t->return_code, '==', 3, "Invalid hostname" );
$t = NPTest->testCmd( "./check_imap -H $host_tcp_imap -e unlikely_string");
cmp_ok( $t->return_code, '==', 1, "Got warning with bad response" );
Modified: nagiosplug/trunk/plugins/t/check_jabber.t
===================================================================
--- nagiosplug/trunk/plugins/t/check_jabber.t 2008-01-08 11:27:57 UTC (rev 1898)
+++ nagiosplug/trunk/plugins/t/check_jabber.t 2008-01-08 11:35:06 UTC (rev 1899)
@@ -34,7 +34,7 @@
my $jabberUnresponsive = '/CRITICAL\s-\sSocket timeout after\s\d+\sseconds/';
-my $jabberInvalid = '/JABBER CRITICAL - Invalid hostname, address or socket:\s.+/';
+my $jabberInvalid = '/JABBER UNKNOWN - Invalid hostname, address or socket:\s.+/';
my $r;
@@ -60,6 +60,6 @@
like( $r->output, $jabberUnresponsive );
$r = NPTest->testCmd( "./check_jabber $hostname_invalid" );
-is( $r->return_code, 2, "Invalid hostname gives critical" );
+is( $r->return_code, 3, "Invalid hostname gives critical" );
like( $r->output, $jabberInvalid );
Modified: nagiosplug/trunk/plugins/t/check_pop.t
===================================================================
--- nagiosplug/trunk/plugins/t/check_pop.t 2008-01-08 11:27:57 UTC (rev 1898)
+++ nagiosplug/trunk/plugins/t/check_pop.t 2008-01-08 11:35:06 UTC (rev 1899)
@@ -53,4 +53,4 @@
cmp_ok( $res->return_code, '==', 2, "Non responsive host");
$res = NPTest->testCmd( "./check_pop $hostname_invalid" );
-cmp_ok( $res->return_code, '==', 2, "Invalid host");
+cmp_ok( $res->return_code, '==', 3, "Invalid host");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.