-
Notifications
You must be signed in to change notification settings - Fork 55
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 #2620 from Bravo555/fix/2584/services-shown-as-chi…
…ld-devices fixed services shown as child devices #2584
- Loading branch information
Showing
5 changed files
with
102 additions
and
39 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
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
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,41 @@ | ||
*** Settings *** | ||
Resource ../../resources/common.resource | ||
|
||
Library Cumulocity | ||
Library ThinEdgeIO | ||
Library DateTime | ||
|
||
Test Teardown Get Logs | ||
|
||
*** Test Cases *** | ||
|
||
No unexpected child devices created with service autostart | ||
[Tags] \#2584 | ||
${DEVICE_SN}= Setup skip_bootstrap=True | ||
Execute Command test -f ./bootstrap.sh && ./bootstrap.sh --no-connect || true | ||
Execute Command systemctl start mosquitto | ||
Execute Command systemctl start tedge-agent | ||
Execute Command systemctl start tedge-mapper-c8y | ||
Execute Command test -f ./bootstrap.sh && ./bootstrap.sh --no-install --no-secure || true | ||
Device Should Exist ${DEVICE_SN} | ||
|
||
# wait for messages to be processed | ||
Sleep 15s | ||
|
||
# Assert that there are no child devices present. | ||
Cumulocity.Device Should Not Have Any Child Devices | ||
|
||
No unexpected child devices created without service autostart | ||
[Tags] \#2606 | ||
${DEVICE_SN}= Setup | ||
Device Should Exist ${DEVICE_SN} | ||
|
||
# Touching the operations directories should not create child devices | ||
Execute Command touch /etc/tedge/operations | ||
Execute Command touch /etc/tedge/operations/c8y | ||
|
||
# wait for fs event to be detected | ||
Sleep 5s | ||
|
||
# Assert that there are no child devices present. | ||
Cumulocity.Device Should Not Have Any Child Devices |
0307f16
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Robot Results