Skip to content

Commit

Permalink
test: add test case to check command failure
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Dec 13, 2024
1 parent 73046fc commit ea2076d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/shell.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea2076d

Please sign in to comment.