Skip to content

Commit

Permalink
Added test to check if many devices are registered
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Guzik <[email protected]>
  • Loading branch information
Bravo555 committed Dec 12, 2024
1 parent 3d77ad5 commit 5e74d97
Showing 1 changed file with 36 additions and 0 deletions.
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

0 comments on commit 5e74d97

Please sign in to comment.