Test Report : TEST-version_topic_test-20240427174054.xml
Test Suite: version_topic_test-20240427174054
Results
| Duration | 3.357 sec |
| Tests | 1 |
| Failures | 0 |
Tests
version_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.357 sec |
| Failed | None |
None
Suite stdout:
[1714239654562] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1714239654562] [INFO] FW-UPD Initialized
[1714239654562] [DBG] FW-UPD enter <function device_base.set_hub at 0x7fb6408ec5e0> (<uclient.hub.HUB object at 0x7fb640b5fc50>,)
[1714239654562] [DBG] FW-UPD exit <function device_base.set_hub at 0x7fb6408ec5e0> ret: None
[1714239654562] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7fb640b6af20> ('<48:3f:da:55:07:5b/status', '-1')
[1714239654562] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7fb640b6af20> ret: None
[1714239654562] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7fb640b6aca0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fb640b5fc50>>,)
[1714239654562] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7fb640b6aca0> ret: None
[1714239654562] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7fb640b6ade0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fb640b5fc50>>,)
[1714239654562] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7fb640b6ade0> ret: None
[1714239654562] [WARN] HUB Try to connect without uri-schema
[1714239654562] [DBG] MQTT enter <function mqtt_transport.connect at 0x7fb640b6a660> ('x.ks.ua',)
[1714239655565] [INFO] HUB Connected
[1714239655566] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb640b5fc50>>)
[1714239655610] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ret: None
[1714239655610] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb640b5fc50>>)
[1714239655654] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ret: None
[1714239655654] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1714239655654] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb640b5fc50>>)
[1714239655698] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ret: None
[1714239655698] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1714239655698] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb640b5fc50>>)
[1714239655742] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ret: None
[1714239655742] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1714239655742] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb640b5fc50>>)
[1714239655786] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ret: None
[1714239655786] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1714239655786] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb640b5fc50>>)
[1714239655830] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ret: None
[1714239655830] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1714239655830] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb640b5fc50>>)
[1714239655874] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ret: None
[1714239655874] [DBG] MQTT exit <function mqtt_transport.connect at 0x7fb640b6a660> ret: None
[1714239655875] [DBG] HUB Step, state: 0 (next: 1714239656875)
[1714239655875] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1714239655875] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fb640b6a7a0> ('/reg', '48:3f:da:55:07:5b')
[1714239655918] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fb640b6a7a0> ret: None
[1714239655962] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1714239655920 }
[1714239655962] [INFO] HUB Registration finish, time: 1714239655920
[1714239655962] [DBG] FW-UPD enter <function device_base.register at 0x7fb6408ecae0> (1714239655,)
[1714239655962] [INFO] FW-UPD Device 3996365522 registration on the server @ 1714239655
[1714239655962] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1714239655962] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb640b5fc50>>)
[1714239656006] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fb640b6a8e0> ret: None
[1714239656006] [DBG] FW-UPD exit <function device_base.register at 0x7fb6408ecae0> ret: None
[1714239656875] [DBG] HUB Step, state: 1 (next: 1714239657875)
[1714239656875] [DBG] FW-UPD enter <function device_base.info_req at 0x7fb6408ed3a0> ()
[1714239656875] [DBG] FW-UPD exit <function device_base.info_req at 0x7fb6408ed3a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714239655}}
[1714239656875] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240427;master;5bb8fc89dabedc6937b87a53de9f9f8b0e057530", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714239655}}]} }
[1714239656875] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fb640b6a7a0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240427;master;5bb8fc89dabedc6937b87a53de9f9f8b0e057530", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714239655}}]}')
[1714239656875] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fb640b6a7a0> ret: None
[1714239657895] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/version, value: version }
[1714239657895] [INFO] HUB Publish message: { topic: version, value: R240427;master;5bb8fc89dabedc6937b87a53de9f9f8b0e057530 }
[1714239657895] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fb640b6a7a0> ('<48:3f:da:55:07:5b/version', 'R240427;master;5bb8fc89dabedc6937b87a53de9f9f8b0e057530')
[1714239657895] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fb640b6a7a0> ret: None
[1714239657910] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7fb640b6ab60> ()
[1714239657911] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7fb640b6ab60> ret: None
[1714239657911] [WARN] HUB Disconecting from broker
Suite stderr:
2024-04-27 17:40:56,880 - TEST - INFO - OP take: 1005.275 ms
2024-04-27 17:40:56,889 - TEST - INFO - Connected with result code: 0
2024-04-27 17:40:56,893 - TEST - INFO - OP take: 10.077 ms
2024-04-27 17:40:57,894 - TEST - INFO - [hub] => { 'version' : 'version' }
2024-04-27 17:40:57,910 - TEST - INFO - OP take: 10.152 ms
2024-04-27 17:40:57,917 - TEST - WARNING - Disconecting from broker
2024-04-27 17:40:57,918 - TEST - WARNING - Disconecting from broker