Test Report : TEST-hub_topic_test-20240422020422.xml
Test Suite: hub_topic_test-20240422020422
Results
| Duration | 3.348 sec |
| Tests | 1 |
| Failures | 0 |
Tests
hub_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.348 sec |
| Failed | None |
None
Suite stdout:
[1713751462189] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1713751462189] [INFO] FW-UPD Initialized
[1713751462189] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f8e6ab18540> (<uclient.hub.HUB object at 0x7f8e6a994710>,)
[1713751462189] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f8e6ab18540> ret: None
[1713751462189] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f8e6ad86e80> ('<48:3f:da:55:07:5b/status', '-1')
[1713751462189] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f8e6ad86e80> ret: None
[1713751462189] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f8e6ad86c00> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f8e6a994710>>,)
[1713751462189] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f8e6ad86c00> ret: None
[1713751462189] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f8e6ad86d40> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f8e6a994710>>,)
[1713751462189] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f8e6ad86d40> ret: None
[1713751462189] [WARN] HUB Try to connect without uri-schema
[1713751462189] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f8e6ad865c0> ('x.ks.ua',)
[1713751463193] [INFO] HUB Connected
[1713751463194] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8e6ad86840> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8e6a994710>>)
[1713751463238] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8e6ad86840> ret: None
[1713751463238] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8e6ad86840> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8e6a994710>>)
[1713751463282] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8e6ad86840> ret: None
[1713751463282] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713751463282] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8e6ad86840> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8e6a994710>>)
[1713751463326] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8e6ad86840> ret: None
[1713751463326] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713751463326] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8e6ad86840> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8e6a994710>>)
[1713751463370] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8e6ad86840> ret: None
[1713751463370] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713751463371] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8e6ad86840> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8e6a994710>>)
[1713751463414] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8e6ad86840> ret: None
[1713751463414] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713751463414] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8e6ad86840> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8e6a994710>>)
[1713751463458] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8e6ad86840> ret: None
[1713751463458] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713751463458] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8e6ad86840> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8e6a994710>>)
[1713751463502] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8e6ad86840> ret: None
[1713751463502] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f8e6ad865c0> ret: None
[1713751463503] [DBG] HUB Step, state: 0 (next: 1713751464503)
[1713751463503] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1713751463503] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f8e6ad86700> ('/reg', '48:3f:da:55:07:5b')
[1713751463547] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f8e6ad86700> ret: None
[1713751463590] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1713751463548 }
[1713751463590] [INFO] HUB Registration finish, time: 1713751463548
[1713751463590] [DBG] FW-UPD enter <function device_base.register at 0x7f8e6ab18a40> (1713751463,)
[1713751463590] [INFO] FW-UPD Device 3996365522 registration on the server @ 1713751463
[1713751463590] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713751463590] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8e6ad86840> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8e6a994710>>)
[1713751463634] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8e6ad86840> ret: None
[1713751463634] [DBG] FW-UPD exit <function device_base.register at 0x7f8e6ab18a40> ret: None
[1713751464503] [DBG] HUB Step, state: 1 (next: 1713751465503)
[1713751464503] [DBG] FW-UPD enter <function device_base.info_req at 0x7f8e6ab19300> ()
[1713751464503] [DBG] FW-UPD exit <function device_base.info_req at 0x7f8e6ab19300> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713751463}}
[1713751464503] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240422;master;1cbe23275f06225250929fe7fe58dd3456c46af0", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713751463}}]} }
[1713751464503] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f8e6ad86700> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240422;master;1cbe23275f06225250929fe7fe58dd3456c46af0", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713751463}}]}')
[1713751464503] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f8e6ad86700> ret: None
[1713751465528] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f8e6ad86ac0> ()
[1713751465528] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f8e6ad86ac0> ret: None
[1713751465530] [WARN] HUB Disconecting from broker
Suite stderr:
2024-04-22 02:04:24,512 - TEST - INFO - OP take: 1009.406 ms
2024-04-22 02:04:24,522 - TEST - INFO - Connected with result code: 0
2024-04-22 02:04:24,525 - TEST - INFO - OP take: 10.076 ms
2024-04-22 02:04:25,527 - TEST - INFO - OP take: 0.006 ms
2024-04-22 02:04:25,529 - TEST - WARNING - Disconecting from broker