From 4433c7554337b6bc54a3dc548b75746f9dbc2d86 Mon Sep 17 00:00:00 2001 From: Anton Lofgren Date: Fri, 30 Jan 2015 10:33:47 +0100 Subject: check_ssh.t: Fix a few typos Signed-off-by: Anton Lofgren diff --git a/plugins/t/check_ssh.t b/plugins/t/check_ssh.t index 6b5e93b..3e1824d 100644 --- a/plugins/t/check_ssh.t +++ b/plugins/t/check_ssh.t @@ -92,19 +92,16 @@ SKIP { cmp_ok($result->return_code, '==', 0, "Exit with return code 0 (OK)"); like($result->output, '/^SSH OK - /', "Status text if command returned none (OK)"); - $res = NPTest->testCmd( "./check_ssh -H $host_nonresponsive -t 2" ); - cmp_ok($result->return_code, '==', 2, "Exit with return code 0 (OK)"); + cmp_ok($result->return_code, '==', 2, "Exit with return code 2 (CRITICAL)"); like($result->output, '/^CRITICAL - Socket timeout after 2 seconds/', "Status text if command returned none (OK)"); - - $res = NPTest->testCmd( "./check_ssh -H $hostname_invalid -t 2" ); - cmp_ok($result->return_code, '==', 3, "Exit with return code 0 (OK)"); + cmp_ok($result->return_code, '==', 3, "Exit with return code 3 (UNKNOWN)"); like($result->output, '/^check_ssh: Invalid hostname/', "Status text if command returned none (OK)"); } -- cgit v0.10-9-g596f