diff --git a/tests/RobotFramework/tests/cumulocity/availability/processes_many_devices.robot b/tests/RobotFramework/tests/cumulocity/availability/processes_many_devices.robot new file mode 100644 index 00000000000..9e120f9e06a --- /dev/null +++ b/tests/RobotFramework/tests/cumulocity/availability/processes_many_devices.robot @@ -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