Skip to content

Commit 28d676c

Browse files
committed
MCU8MASS-1169 Add pytest case for mqtt_with_connection_loss_handling
1 parent 9cbe31b commit 28d676c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/test_examples.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,30 @@ def example_test_data():
341341
"expectation": "\\[INFO\\] Closing MQTT connection"
342342
}
343343
],
344+
"mqtt_with_connection_loss_handling": [
345+
{
346+
"expectation": "\\[INFO\\] Starting MQTT with Connection Loss Handling"
347+
},
348+
{
349+
"expectation": "\r\n"
350+
},
351+
{
352+
"expectation": "\\[INFO\\] Not connected to the network. Attempting to connect!"
353+
},
354+
{
355+
"expectation": "\\[INFO\\] Connecting to operator.{0,}OK!"
356+
},
357+
{
358+
"expectation": "\\[INFO\\] Not connected to broker. Attempting to connect!"
359+
},
360+
{
361+
"expectation": "\\[INFO\\] Connecting to broker.{0,}OK!"
362+
},
363+
{
364+
"repeat": 5,
365+
"expectation": "\\[INFO\\] Published message: \\d{1,}. Failed publishes: \\d{1,}."
366+
},
367+
],
344368
"power_down": [
345369
{
346370
"expectation": "\\[INFO\\] Connecting to operator.{0,}OK!"

0 commit comments

Comments
 (0)