diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-08 01:15:54 +0100 |
|---|---|---|
| committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-08 02:10:45 +0100 |
| commit | 4442ea917b9b3a7bc4fe4b980bbfc70b533a6010 (patch) | |
| tree | c2e86962155e9f742a33837d71d4359b9f5de5f0 | |
| parent | 034d4ee15840550dac4a57b41f5b60732ca1df6b (diff) | |
| download | monitoring-plugins-4442ea917b9b3a7bc4fe4b980bbfc70b533a6010.tar.gz | |
small test correction
| -rw-r--r-- | plugins/t/check_smtp.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/t/check_smtp.t b/plugins/t/check_smtp.t index 6c8601d3..c2f53c3d 100644 --- a/plugins/t/check_smtp.t +++ b/plugins/t/check_smtp.t | |||
| @@ -25,7 +25,7 @@ my $hostname_invalid = getTestParameter( "NP_HOSTNAME_INVALID", | |||
| 25 | "An invalid (not known to DNS) hostname", "nosuchhost" ); | 25 | "An invalid (not known to DNS) hostname", "nosuchhost" ); |
| 26 | my $res; | 26 | my $res; |
| 27 | 27 | ||
| 28 | plan tests => 15; | 28 | plan tests => 13; |
| 29 | 29 | ||
| 30 | SKIP: { | 30 | SKIP: { |
| 31 | skip "No SMTP server defined", 4 unless $host_tcp_smtp; | 31 | skip "No SMTP server defined", 4 unless $host_tcp_smtp; |
| @@ -47,7 +47,7 @@ SKIP: { | |||
| 47 | 47 | ||
| 48 | $res = NPTest->testCmd( "./check_smtp -H $host_tcp_smtp --ssl -p 25" ); | 48 | $res = NPTest->testCmd( "./check_smtp -H $host_tcp_smtp --ssl -p 25" ); |
| 49 | is ($res->return_code, 2, "Check rc of connecting to $host_tcp_smtp with TLS on standard SMTP port" ); | 49 | is ($res->return_code, 2, "Check rc of connecting to $host_tcp_smtp with TLS on standard SMTP port" ); |
| 50 | like ($res->output, qr/^cannot create TLS context\./, "Check output of connecting to $host_tcp_smtp with TLS on standard SMTP port"); | 50 | like ($res->output, qr/cannot create TLS context/, "Check output of connecting to $host_tcp_smtp with TLS on standard SMTP port"); |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | SKIP: { | 53 | SKIP: { |
