Skip to content

Commit aa07f57

Browse files
committed
fixup! add test to reproduce the await-agent-restart bug
Signed-off-by: reubenmiller <[email protected]>
1 parent 66d2da1 commit aa07f57

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/RobotFramework/tests/tedge_agent/workflows/custom_operation.robot

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,13 @@ Placeholder workflow created for ill-defined operations
193193
${workflow_log} Execute Command cat /var/log/tedge/agent/workflow-issue-3079-test-1.log
194194
Should Contain ${workflow_log} item=TOML parse error
195195

196-
197196
Trigger wrapped workflow without an intermediate state
198-
# [Documentation]
197+
# [Documentation]
199198
Execute Command
200199
... cmd=echo 'tedge ALL = (ALL) NOPASSWD:SETENV: /usr/bin/tedge, /usr/bin/systemctl, /etc/tedge/sm-plugins/[a-zA-Z0-9]*, /bin/sync, /sbin/init, /sbin/shutdown, /usr/sbin/reboot, /usr/bin/on_shutdown.sh' > /etc/sudoers.d/tedge
201200
${pid_before} Execute Command sudo systemctl show --property MainPID tedge-agent
202-
Execute Command tedge mqtt pub --retain te/device/main///cmd/restart-tedge-agent-wrapper/robot-1 '{"status":"init"}'
201+
Execute Command
202+
... tedge mqtt pub --retain te/device/main///cmd/restart-tedge-agent-wrapper/robot-1 '{"status":"init"}'
203203
Should Have MQTT Messages
204204
... te/device/main///cmd/restart-tedge-agent-wrapper/robot-1
205205
... message_pattern=.*successful.*
@@ -208,6 +208,7 @@ Trigger wrapped workflow without an intermediate state
208208
${pid_after} Execute Command sudo systemctl show --property MainPID tedge-agent
209209
Should Not Be Equal ${pid_before} ${pid_after} msg=tedge-agent should have been restarted
210210

211+
211212
*** Keywords ***
212213
Custom Test Setup
213214
Execute Command

0 commit comments

Comments
 (0)