Test Report : TEST-ping_topic_test-20240407050403.xml
Test Suite: ping_topic_test-20240407050403
Results
| Duration | 3.358 sec |
| Tests | 1 |
| Failures | 0 |
Tests
ping_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.358 sec |
| Failed | None |
None
Suite stdout:
[1712466243019] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1712466243020] [INFO] FW-UPD Initialized
[1712466243020] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f219ca145e0> (<uclient.hub.HUB object at 0x7f219d666910>,)
[1712466243020] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f219ca145e0> ret: None
[1712466243020] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f219cc86f20> ('<48:3f:da:55:07:5b/status', '-1')
[1712466243020] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f219cc86f20> ret: None
[1712466243020] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f219cc86ca0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f219d666910>>,)
[1712466243020] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f219cc86ca0> ret: None
[1712466243020] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f219cc86de0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f219d666910>>,)
[1712466243020] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f219cc86de0> ret: None
[1712466243020] [WARN] HUB Try to connect without uri-schema
[1712466243020] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f219cc86660> ('x.ks.ua',)
[1712466244025] [INFO] HUB Connected
[1712466244025] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f219cc868e0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f219d666910>>)
[1712466244066] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f219cc868e0> ret: None
[1712466244066] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f219cc868e0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f219d666910>>)
[1712466244110] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f219cc868e0> ret: None
[1712466244110] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1712466244110] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f219cc868e0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f219d666910>>)
[1712466244154] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f219cc868e0> ret: None
[1712466244154] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1712466244154] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f219cc868e0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f219d666910>>)
[1712466244198] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f219cc868e0> ret: None
[1712466244198] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1712466244198] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f219cc868e0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f219d666910>>)
[1712466244242] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f219cc868e0> ret: None
[1712466244242] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1712466244242] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f219cc868e0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f219d666910>>)
[1712466244286] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f219cc868e0> ret: None
[1712466244286] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1712466244286] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f219cc868e0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f219d666910>>)
[1712466244330] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f219cc868e0> ret: None
[1712466244330] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f219cc86660> ret: None
[1712466244331] [DBG] HUB Step, state: 0 (next: 1712466245331)
[1712466244331] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1712466244331] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f219cc867a0> ('/reg', '48:3f:da:55:07:5b')
[1712466244374] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f219cc867a0> ret: None
[1712466244418] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1712466244382 }
[1712466244418] [INFO] HUB Registration finish, time: 1712466244382
[1712466244418] [DBG] FW-UPD enter <function device_base.register at 0x7f219ca14ae0> (1712466244,)
[1712466244418] [INFO] FW-UPD Device 3996365522 registration on the server @ 1712466244
[1712466244418] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1712466244418] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f219cc868e0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f219d666910>>)
[1712466244462] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f219cc868e0> ret: None
[1712466244462] [DBG] FW-UPD exit <function device_base.register at 0x7f219ca14ae0> ret: None
[1712466245331] [DBG] HUB Step, state: 1 (next: 1712466246331)
[1712466245331] [DBG] FW-UPD enter <function device_base.info_req at 0x7f219ca153a0> ()
[1712466245331] [DBG] FW-UPD exit <function device_base.info_req at 0x7f219ca153a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1712466244}}
[1712466245331] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240407;master;fc74d869358fa60643af852fcb85137b7a1f5f15", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1712466244}}]} }
[1712466245331] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f219cc867a0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240407;master;fc74d869358fa60643af852fcb85137b7a1f5f15", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1712466244}}]}')
[1712466245331] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f219cc867a0> ret: None
[1712466246354] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/ping, value: ping }
[1712466246354] [INFO] HUB Ping command
[1712466246354] [INFO] HUB Publish message: { topic: ping, value: OK }
[1712466246354] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f219cc867a0> ('<48:3f:da:55:07:5b/ping', 'OK')
[1712466246354] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f219cc867a0> ret: None
[1712466246364] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f219cc86b60> ()
[1712466246365] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f219cc86b60> ret: None
[1712466246365] [WARN] HUB Disconecting from broker
Suite stderr:
2024-04-07 05:04:05,339 - TEST - INFO - OP take: 1007.81 ms
2024-04-07 05:04:05,347 - TEST - INFO - Connected with result code: 0
2024-04-07 05:04:05,352 - TEST - INFO - OP take: 10.078 ms
2024-04-07 05:04:06,352 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2024-04-07 05:04:06,363 - TEST - INFO - OP take: 10.164 ms
2024-04-07 05:04:06,371 - TEST - WARNING - Disconecting from broker