From ea2076d4aa3da039e8531fcb7c2410838c8bd18c Mon Sep 17 00:00:00 2001 From: reubenmiller Date: Fri, 13 Dec 2024 22:20:43 +0100 Subject: [PATCH] test: add test case to check command failure --- tests/shell.robot | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/shell.robot b/tests/shell.robot index 55eff09..9cbd52c 100644 --- a/tests/shell.robot +++ b/tests/shell.robot @@ -20,6 +20,13 @@ Execute command Operation Should Be SUCCESSFUL ${operation} Should Be Equal ${operation.to_json()["c8y_Command"]["result"]} helloworld\n +Execute command that fails + ${operation}= Cumulocity.Create Operation + ... description=example + ... fragments={"c8y_Command":{"text":"echo foo; exit 1"}} + + Operation Should Be FAILED ${operation} + *** Keywords *** Test Setup