Skip to content

Commit

Permalink
Merge pull request #2580 from reubenmiller/fix-flaky-measurement-moni…
Browse files Browse the repository at this point in the history
…tor-assertion

test: filter MQTT message to avoid false negatives when thin-edge.io splits measurements
  • Loading branch information
reubenmiller authored Jan 10, 2024
2 parents 4d5c44a + 1ce3b8c commit 0c776a7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

1 comment on commit 0c776a7

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass % ⏱️ Duration
378 0 3 378 100 56m58.105s

Please sign in to comment.