-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3033 from reubenmiller/fix-tedge-agent-as-child-d…
…evice fix: tedge-agent use the root topic when provided by the cli flag
- Loading branch information
Showing
3 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
tests/RobotFramework/tests/tedge_agent/tedge_agent_as_child.robot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
*** Settings *** | ||
Resource ../../resources/common.resource | ||
Library ThinEdgeIO | ||
|
||
Test Tags theme:tedge_agent | ||
Test Setup Custom Setup | ||
Test Teardown Get Logs | ||
|
||
*** Test Cases *** | ||
|
||
Run agent with a custom topic prefix #3031 | ||
# Only run tedge-agent for a few seconds | ||
${output}= Execute Command timeout 5 tedge-agent --mqtt-topic-root "custom_root" --mqtt-device-topic-id "device/customname//" 2>&1 ignore_exit_code=${True} | ||
Should Not Contain ${output} te/ | ||
Should Contain ${output} custom_root/device/customname// | ||
|
||
|
||
*** Keywords *** | ||
|
||
Custom Setup | ||
${DEVICE_SN}= Setup skip_bootstrap=${True} | ||
Execute Command test -f ./bootstrap.sh && ./bootstrap.sh --no-connect | ||
Set Suite Variable $DEVICE_SN |