diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2005-11-04 09:38:24 +0000 |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2005-11-04 09:38:24 +0000 |
commit | 003c6dea156e857b4c8f2498ea78332f6315ffae (patch) | |
tree | dbf6ebb566c1f0067c1e7ff554c36e4225245c12 /plugins/t | |
parent | 9d6f48dd417d00b3410023a35f4e39bed9b96ed4 (diff) | |
download | monitoring-plugins-003c6dea156e857b4c8f2498ea78332f6315ffae.tar.gz |
Fixed --mismatch option for check_tcp. Added tests into check_imap
(Rick Fey - 1339134)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1273 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/t')
-rw-r--r-- | plugins/t/check_imap.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/t/check_imap.t b/plugins/t/check_imap.t index f86faa4c..32b4136a 100644 --- a/plugins/t/check_imap.t +++ b/plugins/t/check_imap.t | |||
@@ -10,7 +10,7 @@ use Test; | |||
10 | use NPTest; | 10 | use NPTest; |
11 | 11 | ||
12 | use vars qw($tests); | 12 | use vars qw($tests); |
13 | BEGIN {$tests = 5; plan tests => $tests} | 13 | BEGIN {$tests = 7; plan tests => $tests} |
14 | 14 | ||
15 | my $host_tcp_smtp = getTestParameter( "host_tcp_smtp", "NP_HOST_TCP_SMTP", "mailhost", | 15 | my $host_tcp_smtp = getTestParameter( "host_tcp_smtp", "NP_HOST_TCP_SMTP", "mailhost", |
16 | "A host providing an STMP Service (a mail server)"); | 16 | "A host providing an STMP Service (a mail server)"); |
@@ -33,6 +33,8 @@ $t += checkCmd( "./check_imap -H $host_tcp_imap -p 143 -w 9 -c 9 -t 10 -e '* | |||
33 | $t += checkCmd( "./check_imap $host_tcp_imap -p 143 -wt 9 -ct 9 -to 10 -e '* OK'", 0, undef, %exceptions ); | 33 | $t += checkCmd( "./check_imap $host_tcp_imap -p 143 -wt 9 -ct 9 -to 10 -e '* OK'", 0, undef, %exceptions ); |
34 | $t += checkCmd( "./check_imap $host_nonresponsive", 2 ); | 34 | $t += checkCmd( "./check_imap $host_nonresponsive", 2 ); |
35 | $t += checkCmd( "./check_imap $hostname_invalid", 2 ); | 35 | $t += checkCmd( "./check_imap $hostname_invalid", 2 ); |
36 | $t += checkCmd( "./check_imap -H $host_tcp_imap -e unlikely_string", 1); | ||
37 | $t += checkCmd( "./check_imap -H $host_tcp_imap -e unlikely_string -M crit", 2); | ||
36 | 38 | ||
37 | 39 | ||
38 | exit(0) if defined($Test::Harness::VERSION); | 40 | exit(0) if defined($Test::Harness::VERSION); |