diff options
author | Sven Nierlein <sven@nierlein.de> | 2013-09-17 08:22:37 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2013-09-17 08:23:08 (GMT) |
commit | c7ea2aed746e610cd7f7e0a95ae275b5ea3a3d62 (patch) | |
tree | ef13b20546b554edeccb83d756d4018eb3738bc6 /plugins-scripts | |
parent | 982cbeea0008c7dbbf670b2fa274115ee13556fb (diff) | |
download | monitoring-plugins-c7ea2aed746e610cd7f7e0a95ae275b5ea3a3d62.tar.gz |
check_disk_smb: fixed number of tests to skip
Diffstat (limited to 'plugins-scripts')
-rw-r--r-- | plugins-scripts/t/check_disk_smb.t | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins-scripts/t/check_disk_smb.t b/plugins-scripts/t/check_disk_smb.t index bd43c9c..831f388 100644 --- a/plugins-scripts/t/check_disk_smb.t +++ b/plugins-scripts/t/check_disk_smb.t | |||
@@ -31,7 +31,7 @@ SKIP: { | |||
31 | "An access denying SMB share name the host provides", | 31 | "An access denying SMB share name the host provides", |
32 | "private"); | 32 | "private"); |
33 | 33 | ||
34 | my $host_nonresponsive = getTestParameter( "NP_HOST_NONRESPONSIVE", | 34 | my $host_nonresponsive = getTestParameter( "NP_HOST_NONRESPONSIVE", |
35 | "The hostname of system not responsive to network requests", "10.0.0.1" ); | 35 | "The hostname of system not responsive to network requests", "10.0.0.1" ); |
36 | 36 | ||
37 | my $hostname_invalid = getTestParameter( "NP_HOSTNAME_INVALID", | 37 | my $hostname_invalid = getTestParameter( "NP_HOSTNAME_INVALID", |
@@ -46,7 +46,7 @@ SKIP: { | |||
46 | 46 | ||
47 | $res = NPTest->testCmd( "./$plugin" ); | 47 | $res = NPTest->testCmd( "./$plugin" ); |
48 | is( $res->return_code, 3, "No arguments" ); | 48 | is( $res->return_code, 3, "No arguments" ); |
49 | 49 | ||
50 | $res = NPTest->testCmd( "./$plugin -H fakehostname" ); | 50 | $res = NPTest->testCmd( "./$plugin -H fakehostname" ); |
51 | is( $res->return_code, 3, "No share specified" ); | 51 | is( $res->return_code, 3, "No share specified" ); |
52 | 52 | ||
@@ -54,7 +54,7 @@ SKIP: { | |||
54 | is( $res->return_code, 3, "warn is less than critical" ); | 54 | is( $res->return_code, 3, "warn is less than critical" ); |
55 | 55 | ||
56 | SKIP: { | 56 | SKIP: { |
57 | skip "no smb host defined", 6 if ( ! $host ); | 57 | skip "no smb host defined", 10 if ( ! $host ); |
58 | 58 | ||
59 | SKIP: { | 59 | SKIP: { |
60 | skip "no share name defined", 2 if ( ! $smb_share ); | 60 | skip "no share name defined", 2 if ( ! $smb_share ); |
@@ -90,7 +90,7 @@ SKIP: { | |||
90 | SKIP: { | 90 | SKIP: { |
91 | skip "no non responsive host defined", 1 if ( ! $host_nonresponsive ); | 91 | skip "no non responsive host defined", 1 if ( ! $host_nonresponsive ); |
92 | $res = NPTest->testCmd( "./$plugin -H $host_nonresponsive -s np_foobar "); | 92 | $res = NPTest->testCmd( "./$plugin -H $host_nonresponsive -s np_foobar "); |
93 | cmp_ok( $res->return_code, '==', 3, "Exit UNKNOWN with non responsive host" ); | 93 | cmp_ok( $res->return_code, '==', 3, "Exit UNKNOWN with non responsive host" ); |
94 | } | 94 | } |
95 | 95 | ||
96 | } | 96 | } |