From 1ce3b8c4beedf25cd0130c547a55fe3d599bdce6 Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Wed, 10 Jan 2024 12:59:31 +0100 Subject: [PATCH] test: filter MQTT message to avoid false negatives when thin-edge.io splits measurements Signed-off-by: Reuben Miller --- .../tests/cumulocity/monitoring/monitor_device_collectd.robot | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/RobotFramework/tests/cumulocity/monitoring/monitor_device_collectd.robot b/tests/RobotFramework/tests/cumulocity/monitoring/monitor_device_collectd.robot index 8fa7fc93f86..57f9e4b27ce 100644 --- a/tests/RobotFramework/tests/cumulocity/monitoring/monitor_device_collectd.robot +++ b/tests/RobotFramework/tests/cumulocity/monitoring/monitor_device_collectd.robot @@ -39,9 +39,8 @@ Check thin-edge monitoring Execute Command sudo systemctl enable tedge-mapper-collectd Execute Command sudo systemctl start tedge-mapper-collectd # Check thin-edge monitoring - ${tedge_messages}= Should Have MQTT Messages topic=te/device/main///m/ minimum=1 maximum=None + ${tedge_messages}= Should Have MQTT Messages topic=te/device/main///m/ minimum=1 maximum=None message_pattern=.*(memory|cpu|df-root).* Should Contain ${tedge_messages[0]} "time" - Should Contain Any ${tedge_messages[0]} "memory" "cpu" "df-root" ${c8y_messages}= Should Have MQTT Messages topic=c8y/measurement/measurements/create minimum=1 maximum=None Should Contain ${c8y_messages[0]} "type":"ThinEdgeMeasurement"