Test Report : TEST-ping_topic_test-20231118124051.xml
Test Suite: ping_topic_test-20231118124051
Results
| Duration | 3.359 sec |
| Tests | 1 |
| Failures | 0 |
Tests
ping_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.359 sec |
| Failed | None |
None
Suite stdout:
[1700311251872] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1700311251872] [INFO] FW-UPD Initialized
[1700311251872] [DBG] FW-UPD enter <function device_base.set_hub at 0x7ff36b3742c0> (<uclient.hub.HUB object at 0x7ff36b1ecb50>,)
[1700311251872] [DBG] FW-UPD exit <function device_base.set_hub at 0x7ff36b3742c0> ret: None
[1700311251872] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7ff36b5e6c00> ('<48:3f:da:55:07:5b/status', '-1')
[1700311251872] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7ff36b5e6c00> ret: None
[1700311251872] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7ff36b5e6980> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7ff36b1ecb50>>,)
[1700311251872] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7ff36b5e6980> ret: None
[1700311251872] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7ff36b5e6ac0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7ff36b1ecb50>>,)
[1700311251872] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7ff36b5e6ac0> ret: None
[1700311251872] [DBG] MQTT enter <function mqtt_transport.connect at 0x7ff36b5e5da0> ('x.ks.ua', 1883)
[1700311252877] [INFO] HUB Connected
[1700311252877] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff36b1ecb50>>)
[1700311252921] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ret: None
[1700311252921] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff36b1ecb50>>)
[1700311252964] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ret: None
[1700311252964] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1700311252964] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff36b1ecb50>>)
[1700311253008] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ret: None
[1700311253008] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1700311253008] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff36b1ecb50>>)
[1700311253052] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ret: None
[1700311253052] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1700311253052] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff36b1ecb50>>)
[1700311253097] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ret: None
[1700311253097] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1700311253097] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff36b1ecb50>>)
[1700311253141] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ret: None
[1700311253141] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1700311253141] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff36b1ecb50>>)
[1700311253185] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ret: None
[1700311253185] [DBG] MQTT exit <function mqtt_transport.connect at 0x7ff36b5e5da0> ret: None
[1700311253186] [DBG] HUB Step, state: 0 (next: 1700311254186)
[1700311253186] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1700311253186] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff36b5e6480> ('/reg', '48:3f:da:55:07:5b')
[1700311253228] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff36b5e6480> ret: None
[1700311253276] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1700311253234 }
[1700311253276] [INFO] HUB Registration finish, time: 1700311253234
[1700311253276] [DBG] FW-UPD enter <function device_base.register at 0x7ff36b3747c0> (1700311253,)
[1700311253276] [INFO] FW-UPD Device 3996365522 registration on the server @ 1700311253
[1700311253276] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1700311253276] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff36b1ecb50>>)
[1700311253322] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7ff36b5e65c0> ret: None
[1700311253322] [DBG] FW-UPD exit <function device_base.register at 0x7ff36b3747c0> ret: None
[1700311254186] [DBG] HUB Step, state: 1 (next: 1700311255186)
[1700311254186] [DBG] FW-UPD enter <function device_base.info_req at 0x7ff36b375080> ()
[1700311254186] [DBG] FW-UPD exit <function device_base.info_req at 0x7ff36b375080> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1700311253}}
[1700311254186] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231118;master;08d7b27b385d4025b813ff924b091926c599eabf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700311253}}]} }
[1700311254186] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff36b5e6480> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231118;master;08d7b27b385d4025b813ff924b091926c599eabf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700311253}}]}')
[1700311254186] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff36b5e6480> ret: None
[1700311255206] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/ping, value: ping }
[1700311255206] [INFO] HUB Ping command
[1700311255206] [INFO] HUB Publish message: { topic: ping, value: OK }
[1700311255206] [DBG] MQTT enter <function mqtt_transport.publish at 0x7ff36b5e6480> ('<48:3f:da:55:07:5b/ping', 'OK')
[1700311255206] [DBG] MQTT exit <function mqtt_transport.publish at 0x7ff36b5e6480> ret: None
[1700311255221] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7ff36b5e6840> ()
[1700311255222] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7ff36b5e6840> ret: None
[1700311255223] [WARN] HUB Disconecting from broker
Suite stderr:
2023-11-18 12:40:54,192 - TEST - INFO - OP take: 1006.225 ms
2023-11-18 12:40:54,197 - TEST - INFO - Connected with result code: 0
2023-11-18 12:40:54,204 - TEST - INFO - OP take: 10.116 ms
2023-11-18 12:40:55,204 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2023-11-18 12:40:55,220 - TEST - INFO - OP take: 10.189 ms
2023-11-18 12:40:55,229 - TEST - WARNING - Disconecting from broker