[nagiosplug] check_disk_smb: fixed number of tests to skip
"Nagios Plugin Development" <[email protected]> Tue, 17 Sep 2013 08:30:14 +0000
| Newsgroups | gmane.network.nagios.plugins.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module: nagiosplug Branch: master Commit: c7ea2aed746e610cd7f7e0a95ae275b5ea3a3d62 Author: Sven Nierlein <[email protected]> Date: Tue Sep 17 10:22:37 2013 +0200 URL: http://nagiosplug.git.sf.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=commit;h=c7ea2ae check_disk_smb: fixed number of tests to skip --- 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: { "An access denying SMB share name the host provides", "private"); - my $host_nonresponsive = getTestParameter( "NP_HOST_NONRESPONSIVE", + my $host_nonresponsive = getTestParameter( "NP_HOST_NONRESPONSIVE", "The hostname of system not responsive to network requests", "10.0.0.1" ); my $hostname_invalid = getTestParameter( "NP_HOSTNAME_INVALID", @@ -46,7 +46,7 @@ SKIP: { $res = NPTest->testCmd( "./$plugin" ); is( $res->return_code, 3, "No arguments" ); - + $res = NPTest->testCmd( "./$plugin -H fakehostname" ); is( $res->return_code, 3, "No share specified" ); @@ -54,7 +54,7 @@ SKIP: { is( $res->return_code, 3, "warn is less than critical" ); SKIP: { - skip "no smb host defined", 6 if ( ! $host ); + skip "no smb host defined", 10 if ( ! $host ); SKIP: { skip "no share name defined", 2 if ( ! $smb_share ); @@ -90,7 +90,7 @@ SKIP: { SKIP: { skip "no non responsive host defined", 1 if ( ! $host_nonresponsive ); $res = NPTest->testCmd( "./$plugin -H $host_nonresponsive -s np_foobar "); - cmp_ok( $res->return_code, '==', 3, "Exit UNKNOWN with non responsive host" ); - } + cmp_ok( $res->return_code, '==', 3, "Exit UNKNOWN with non responsive host" ); + } } ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk