From f14d79af73110ff254e4546bbbf92a39ddf64e0a Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Thu, 28 Dec 2023 23:53:40 -0700 Subject: [PATCH] Fix ssh unit test test_handle_routine_single_run_invalid_retcode --- tests/pytests/unit/client/ssh/test_ssh.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/pytests/unit/client/ssh/test_ssh.py b/tests/pytests/unit/client/ssh/test_ssh.py index 7f2bcb1b40ff..030d3bb7ee6e 100644 --- a/tests/pytests/unit/client/ssh/test_ssh.py +++ b/tests/pytests/unit/client/ssh/test_ssh.py @@ -500,7 +500,13 @@ def test_handle_routine_single_run_invalid_retcode(opts, target, caplog): ( { "id": "localhost", - "ret": "Something went seriously wrong", + "ret": { + "stdout": "", + "stderr": "Something went seriously wrong", + "retcode": 1, + "parsed": None, + "_error": "The command resulted in a non-zero exit code", + }, }, 1, )