Test Report : TEST-hub_topic_test-20240505094749.xml
Test Suite: hub_topic_test-20240505094749
Results
| Duration | 3.05 sec |
| Tests | 1 |
| Failures | 0 |
Tests
hub_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.05 sec |
| Failed | None |
None
Suite stdout:
[1714902469194] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1714902469195] [INFO] FW-UPD Initialized
[1714902469195] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f0fcd2747c0> (<uclient.hub.HUB object at 0x7f0fcd0f0990>,)
[1714902469195] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f0fcd2747c0> ret: None
[1714902469195] [DBG] HUB enter <function HUB.register_root_cb at 0x7f0fcd276840> ('>user/dev', <bound method user_device.on_user_dev of <uclient.fwupd.fwupd_device object at 0x7f0fcd0f0890>>)
[1714902469195] [DBG] HUB exit <function HUB.register_root_cb at 0x7f0fcd276840> ret: None
[1714902469195] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f0fcd47f1a0> ('<48:3f:da:55:07:5c/status', '-1')
[1714902469195] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f0fcd47f1a0> ret: None
[1714902469195] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f0fcd47ef20> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f0fcd0f0990>>,)
[1714902469195] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f0fcd47ef20> ret: None
[1714902469195] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f0fcd47f060> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f0fcd0f0990>>,)
[1714902469195] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f0fcd47f060> ret: None
[1714902469195] [DBG] HUB enter <function HUB.connect at 0x7f0fcd277100> ()
[1714902469195] [WARN] HUB Try to connect without uri-schema
[1714902469195] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f0fcd47e8e0> ('x.ks.ua',)
[1714902470200] [DBG] HUB enter <function HUB.__on_connect at 0x7f0fcd276200> ()
[1714902470200] [INFO] HUB Connected
[1714902470200] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ('>hub', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f0fcd0f0990>>)
[1714902470200] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ret: None
[1714902470200] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ('>user/dev', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f0fcd0f0990>>)
[1714902470200] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ret: None
[1714902470200] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f0fcd275940> ('time', '/')
[1714902470200] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5c/time }
[1714902470200] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ('/48:3f:da:55:07:5c/time', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f0fcd0f0990>>)
[1714902470201] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ret: None
[1714902470201] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f0fcd275940> ret: None
[1714902470201] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f0fcd275940> ('lifetime', '>')
[1714902470201] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/lifetime }
[1714902470201] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ('>48:3f:da:55:07:5c/lifetime', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f0fcd0f0990>>)
[1714902470201] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ret: None
[1714902470201] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f0fcd275940> ret: None
[1714902470201] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f0fcd275940> ('error', '>')
[1714902470201] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/error }
[1714902470201] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ('>48:3f:da:55:07:5c/error', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f0fcd0f0990>>)
[1714902470201] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ret: None
[1714902470201] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f0fcd275940> ret: None
[1714902470201] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f0fcd275940> ('ping', '>')
[1714902470201] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/ping }
[1714902470201] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ('>48:3f:da:55:07:5c/ping', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f0fcd0f0990>>)
[1714902470201] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ret: None
[1714902470201] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f0fcd275940> ret: None
[1714902470201] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f0fcd275940> ('version', '>')
[1714902470201] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/version }
[1714902470201] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ('>48:3f:da:55:07:5c/version', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f0fcd0f0990>>)
[1714902470201] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ret: None
[1714902470201] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f0fcd275940> ret: None
[1714902470201] [DBG] HUB exit <function HUB.__on_connect at 0x7f0fcd276200> ret: None
[1714902470201] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f0fcd47e8e0> ret: None
[1714902470201] [DBG] HUB exit <function HUB.connect at 0x7f0fcd277100> ret: None
[1714902470212] [DBG] HUB Step, state: 0 (next: 1714902471212)
[1714902470212] [DBG] HUB enter <function HUB.__send_reg at 0x7f0fcd2760c0> ()
[1714902470212] [INFO] HUB Publish reg token: 48:3f:da:55:07:5c
[1714902470212] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f0fcd47ea20> ('/reg', '48:3f:da:55:07:5c')
[1714902470212] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f0fcd47ea20> ret: None
[1714902470212] [DBG] HUB exit <function HUB.__send_reg at 0x7f0fcd2760c0> ret: None
[1714902470252] [DBG] HUB enter <function HUB.__on_message at 0x7f0fcd2765c0> ('/48:3f:da:55:07:5c/time', b'1714902470251')
[1714902470252] [INFO] HUB Message: {topic: /48:3f:da:55:07:5c/time, value: 1714902470251 }
[1714902470252] [DBG] HUB enter <function HUB.__time_hnd at 0x7f0fcd275a80> ('1714902470251',)
[1714902470252] [INFO] HUB Registration finish, time: 1714902470251
[1714902470252] [DBG] FW-UPD enter <function device_base.register at 0x7f0fcd274cc0> (1714902470,)
[1714902470252] [INFO] FW-UPD Device 3996365522 registration on the server @ 1714902470
[1714902470252] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f0fcd275940> ('3996365522/#', '>')
[1714902470252] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/3996365522/# }
[1714902470252] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ('>48:3f:da:55:07:5c/3996365522/#', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f0fcd0f0990>>)
[1714902470253] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f0fcd47eb60> ret: None
[1714902470253] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f0fcd275940> ret: None
[1714902470253] [DBG] FW-UPD exit <function device_base.register at 0x7f0fcd274cc0> ret: None
[1714902470253] [DBG] HUB exit <function HUB.__time_hnd at 0x7f0fcd275a80> ret: None
[1714902470253] [DBG] HUB exit <function HUB.__on_message at 0x7f0fcd2765c0> ret: None
[1714902471219] [DBG] HUB Step, state: 1 (next: 1714902472219)
[1714902471219] [DBG] FW-UPD enter <function device_base.info_req at 0x7f0fcd275580> ()
[1714902471220] [DBG] FW-UPD exit <function device_base.info_req at 0x7f0fcd275580> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714902470}}
[1714902471220] [DBG] HUB enter <function HUB.pub_hub at 0x7f0fcd275800> ('info', '{"mac": "48:3f:da:55:07:5c", "version": "R240505;master;1bc93cf09952cae1e1905f746731ac58c1190052", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714902470}}]}', '/')
[1714902471220] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5c", "version": "R240505;master;1bc93cf09952cae1e1905f746731ac58c1190052", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714902470}}]} }
[1714902471220] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f0fcd47ea20> ('/48:3f:da:55:07:5c/info', '{"mac": "48:3f:da:55:07:5c", "version": "R240505;master;1bc93cf09952cae1e1905f746731ac58c1190052", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714902470}}]}')
[1714902471220] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f0fcd47ea20> ret: None
[1714902471220] [DBG] HUB exit <function HUB.pub_hub at 0x7f0fcd275800> ret: None
[1714902472243] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f0fcd47ede0> ()
[1714902472243] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f0fcd47ede0> ret: None
Suite stderr:
2024-05-05 09:47:51,231 - TEST - INFO - OP take: 1028.729 ms
2024-05-05 09:47:51,234 - TEST - INFO - Connected with result code: 0
2024-05-05 09:47:51,242 - TEST - INFO - OP take: 10.082 ms
2024-05-05 09:47:52,243 - TEST - INFO - OP take: 0.006 ms
2024-05-05 09:47:52,244 - TEST - WARNING - Disconecting from broker