Test Report : TEST-ping_topic_test-20240330135210.xml
Test Suite: ping_topic_test-20240330135210
Results
| Duration | 3.357 sec |
| Tests | 1 |
| Failures | 0 |
Tests
ping_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.357 sec |
| Failed | None |
None
Suite stdout:
[1711806730819] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1711806730819] [INFO] FW-UPD Initialized
[1711806730819] [DBG] FW-UPD enter <function device_base.set_hub at 0x7fd2301a45e0> (<uclient.hub.HUB object at 0x7fd230021190>,)
[1711806730819] [DBG] FW-UPD exit <function device_base.set_hub at 0x7fd2301a45e0> ret: None
[1711806730820] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7fd230416f20> ('<48:3f:da:55:07:5b/status', '-1')
[1711806730820] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7fd230416f20> ret: None
[1711806730820] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7fd230416ca0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fd230021190>>,)
[1711806730820] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7fd230416ca0> ret: None
[1711806730820] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7fd230416de0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fd230021190>>,)
[1711806730820] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7fd230416de0> ret: None
[1711806730820] [WARN] HUB Try to connect without uri-schema
[1711806730820] [DBG] MQTT enter <function mqtt_transport.connect at 0x7fd230416660> ('x.ks.ua',)
[1711806731824] [INFO] HUB Connected
[1711806731824] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fd2304168e0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd230021190>>)
[1711806731866] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fd2304168e0> ret: None
[1711806731866] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fd2304168e0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd230021190>>)
[1711806731910] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fd2304168e0> ret: None
[1711806731910] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1711806731910] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fd2304168e0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd230021190>>)
[1711806731954] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fd2304168e0> ret: None
[1711806731954] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1711806731954] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fd2304168e0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd230021190>>)
[1711806731998] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fd2304168e0> ret: None
[1711806731998] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1711806731998] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fd2304168e0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd230021190>>)
[1711806732042] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fd2304168e0> ret: None
[1711806732042] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1711806732042] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fd2304168e0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd230021190>>)
[1711806732086] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fd2304168e0> ret: None
[1711806732086] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1711806732086] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fd2304168e0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd230021190>>)
[1711806732130] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fd2304168e0> ret: None
[1711806732130] [DBG] MQTT exit <function mqtt_transport.connect at 0x7fd230416660> ret: None
[1711806732131] [DBG] HUB Step, state: 0 (next: 1711806733131)
[1711806732131] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1711806732131] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fd2304167a0> ('/reg', '48:3f:da:55:07:5b')
[1711806732174] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fd2304167a0> ret: None
[1711806732218] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1711806732177 }
[1711806732218] [INFO] HUB Registration finish, time: 1711806732177
[1711806732218] [DBG] FW-UPD enter <function device_base.register at 0x7fd2301a4ae0> (1711806732,)
[1711806732218] [INFO] FW-UPD Device 3996365522 registration on the server @ 1711806732
[1711806732218] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1711806732218] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fd2304168e0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd230021190>>)
[1711806732262] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fd2304168e0> ret: None
[1711806732262] [DBG] FW-UPD exit <function device_base.register at 0x7fd2301a4ae0> ret: None
[1711806733131] [DBG] HUB Step, state: 1 (next: 1711806734131)
[1711806733131] [DBG] FW-UPD enter <function device_base.info_req at 0x7fd2301a53a0> ()
[1711806733131] [DBG] FW-UPD exit <function device_base.info_req at 0x7fd2301a53a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1711806732}}
[1711806733131] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240330;master;d9604b086c82824a652e822a8dd1b981e006f9bd", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711806732}}]} }
[1711806733131] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fd2304167a0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240330;master;d9604b086c82824a652e822a8dd1b981e006f9bd", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711806732}}]}')
[1711806733131] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fd2304167a0> ret: None
[1711806734154] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/ping, value: ping }
[1711806734154] [INFO] HUB Ping command
[1711806734154] [INFO] HUB Publish message: { topic: ping, value: OK }
[1711806734154] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fd2304167a0> ('<48:3f:da:55:07:5b/ping', 'OK')
[1711806734154] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fd2304167a0> ret: None
[1711806734175] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7fd230416b60> ()
[1711806734175] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7fd230416b60> ret: None
[1711806734175] [WARN] HUB Disconecting from broker
Suite stderr:
2024-03-30 13:52:13,139 - TEST - INFO - OP take: 1007.73 ms
2024-03-30 13:52:13,147 - TEST - INFO - Connected with result code: 0
2024-03-30 13:52:13,152 - TEST - INFO - OP take: 10.14 ms
2024-03-30 13:52:14,153 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2024-03-30 13:52:14,174 - TEST - INFO - OP take: 10.11 ms
2024-03-30 13:52:14,175 - TEST - WARNING - Disconecting from broker