summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 31a58a1)
raw | patch | inline | side by side (parent: 31a58a1)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 8 Jan 2008 11:57:24 +0000 (11:57 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Tue, 8 Jan 2008 11:57:24 +0000 (11:57 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1901 f882894a-f735-0410-b71e-b25c423dba1c
diff --git a/plugins/t/check_ftp.t b/plugins/t/check_ftp.t
index 7d7cc68c15925fddecda57439522d79f8468f5c9..47a73e136460e0e478095fce8ec8e6e26ad22988 100644 (file)
--- a/plugins/t/check_ftp.t
+++ b/plugins/t/check_ftp.t
$t += checkCmd( "./check_ftp $host_tcp_ftp -wt 300 -ct 600", 0, $successOutput );
$t += checkCmd( "./check_ftp $host_nonresponsive -wt 0 -ct 0 -to 1", 2 );
-$t += checkCmd( "./check_ftp $hostname_invalid -wt 0 -ct 0", 3 );
+$t += checkCmd( "./check_ftp $hostname_invalid -wt 0 -ct 0", 2 );
exit(0) if defined($Test::Harness::VERSION);
exit($tests - $t);
diff --git a/plugins/t/check_imap.t b/plugins/t/check_imap.t
index 29343025c19fe79ae2ac4efd27b55590614e5504..fa957d1b8581df018c139e82b0248bc03ba07d45 100644 (file)
--- a/plugins/t/check_imap.t
+++ b/plugins/t/check_imap.t
cmp_ok( $t->return_code, '==', 2, "Get error with non reponsive host" );
$t = NPTest->testCmd( "./check_imap $hostname_invalid" );
-cmp_ok( $t->return_code, '==', 3, "Invalid hostname" );
+cmp_ok( $t->return_code, '==', 2, "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" );
index b6193214dfcf2eab3924fb7ca903875ac9869480..6a3d4ef7676a03ae5a2bded1c6e84d9bad77338e 100644 (file)
--- a/plugins/t/check_jabber.t
+++ b/plugins/t/check_jabber.t
my $jabberUnresponsive = '/CRITICAL\s-\sSocket timeout after\s\d+\sseconds/';
-my $jabberInvalid = '/JABBER UNKNOWN - Invalid hostname, address or socket:\s.+/';
+my $jabberInvalid = '/JABBER CRITICAL - Invalid hostname, address or socket:\s.+/';
my $r;
like( $r->output, $jabberUnresponsive );
$r = NPTest->testCmd( "./check_jabber $hostname_invalid" );
-is( $r->return_code, 3, "Invalid hostname gives critical" );
+is( $r->return_code, 2, "Invalid hostname gives critical" );
like( $r->output, $jabberInvalid );
diff --git a/plugins/t/check_pop.t b/plugins/t/check_pop.t
index 565a57717ce2e4b116e192edc4874018f8b7dfbc..b78291dafe781d71614b6a0907e4cc6073a3f821 100644 (file)
--- a/plugins/t/check_pop.t
+++ b/plugins/t/check_pop.t
cmp_ok( $res->return_code, '==', 2, "Non responsive host");
$res = NPTest->testCmd( "./check_pop $hostname_invalid" );
-cmp_ok( $res->return_code, '==', 3, "Invalid host");
+cmp_ok( $res->return_code, '==', 2, "Invalid host");
diff --git a/plugins/t/check_tcp.t b/plugins/t/check_tcp.t
index 83414d90c85f4353496701a5a91b4bf1d0e3c4b8..2914350e6158f649e3682c2587a3ec31123647f0 100644 (file)
--- a/plugins/t/check_tcp.t
+++ b/plugins/t/check_tcp.t
$t += checkCmd( "./check_tcp $host_tcp_http -p 80 -wt 300 -ct 600", 0, $successOutput );
$t += checkCmd( "./check_tcp $host_tcp_http -p 81 -wt 0 -ct 0 -to 1", 2 ); # use invalid port for this test
$t += checkCmd( "./check_tcp $host_nonresponsive -p 80 -wt 0 -ct 0 -to 1", 2 );
-$t += checkCmd( "./check_tcp $hostname_invalid -p 80 -wt 0 -ct 0 -to 1", 3 );
+$t += checkCmd( "./check_tcp $hostname_invalid -p 80 -wt 0 -ct 0 -to 1", 2 );
# Need the \r\n to make it more standards compliant with web servers. Need the various quotes
# so that perl doesn't interpret the \r\n and is passed onto command line correctly