forked from thin-edge/thin-edge.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test to check if many devices are registered
Signed-off-by: Marcel Guzik <[email protected]>
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
tests/RobotFramework/tests/cumulocity/availability/processes_many_devices.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,36 @@ | ||
*** Settings *** | ||
Documentation A separate suite for #3279, because a lot of devices need to be registered, doesn't connect to the | ||
... cloud. Attempt to register many devices and check that messages are still processed. | ||
Resource ../../../resources/common.resource | ||
Library Cumulocity | ||
Library ThinEdgeIO | ||
|
||
Test Setup Test Setup | ||
Test Teardown Get Logs | ||
|
||
Test Tags theme:c8y theme:monitoring \#3279 | ||
|
||
|
||
*** Variables *** | ||
${NUM_ENTITIES} ${100} | ||
|
||
|
||
*** Test Cases *** | ||
Processes many devices | ||
Stop Service tedge-mapper-c8y | ||
|
||
Execute Command | ||
... for i in $(seq 0 ${NUM_ENTITIES}); do tedge mqtt pub --retain "te/device/child$i//" '{"@type":"child-device"}'; done | ||
|
||
Start Service tedge-mapper-c8y | ||
|
||
FOR ${index} IN RANGE ${NUM_ENTITIES} | ||
Should Have MQTT Messages c8y/s/us message_pattern=101,*child${index} | ||
END | ||
|
||
|
||
*** Keywords *** | ||
Test Setup | ||
${DEVICE_SN}= Setup skip_bootstrap=True | ||
Execute Command ./bootstrap.sh |