Test Report : TEST-hub_topic_test-20240430185331.xml
Test Suite: hub_topic_test-20240430185331
Results
| Duration | 4.046 sec |
| Tests | 1 |
| Failures | 0 |
Tests
hub_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 4.046 sec |
| Failed | None |
None
Suite stdout:
[1714503211724] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1714503211724] [INFO] FW-UPD Initialized
[1714503211725] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f2cbaf505e0> (<uclient.hub.HUB object at 0x7f2cbadcc8d0>,)
[1714503211725] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f2cbaf505e0> ret: None
[1714503211725] [DBG] HUB enter <function HUB.register_root_cb at 0x7f2cbaf52660> ('>user/dev', <bound method user_device.on_user_dev of <uclient.fwupd.fwupd_device object at 0x7f2cbafa4a50>>)
[1714503211725] [DBG] HUB exit <function HUB.register_root_cb at 0x7f2cbaf52660> ret: None
[1714503211725] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f2cbb15af20> ('<48:3f:da:55:07:5c/status', '-1')
[1714503211725] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f2cbb15af20> ret: None
[1714503211725] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f2cbb15aca0> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f2cbadcc8d0>>,)
[1714503211725] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f2cbb15aca0> ret: None
[1714503211725] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f2cbb15ade0> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f2cbadcc8d0>>,)
[1714503211725] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f2cbb15ade0> ret: None
[1714503211725] [DBG] HUB enter <function HUB.connect at 0x7f2cbaf52f20> ()
[1714503211725] [WARN] HUB Try to connect without uri-schema
[1714503211725] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f2cbb15a660> ('x.ks.ua',)
[1714503212731] [DBG] HUB enter <function HUB.__on_connect at 0x7f2cbaf52020> ()
[1714503212731] [INFO] HUB Connected
[1714503212731] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ('>hub', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f2cbadcc8d0>>)
[1714503212731] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ret: None
[1714503212731] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ('>user/dev', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f2cbadcc8d0>>)
[1714503212732] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ret: None
[1714503212732] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f2cbaf51760> ('time', '/')
[1714503212732] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5c/time }
[1714503212732] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ('/48:3f:da:55:07:5c/time', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f2cbadcc8d0>>)
[1714503212732] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ret: None
[1714503212732] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f2cbaf51760> ret: None
[1714503212732] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f2cbaf51760> ('lifetime', '>')
[1714503212732] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/lifetime }
[1714503212732] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ('>48:3f:da:55:07:5c/lifetime', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f2cbadcc8d0>>)
[1714503212732] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ret: None
[1714503212732] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f2cbaf51760> ret: None
[1714503212732] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f2cbaf51760> ('error', '>')
[1714503212732] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/error }
[1714503212732] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ('>48:3f:da:55:07:5c/error', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f2cbadcc8d0>>)
[1714503212732] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ret: None
[1714503212732] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f2cbaf51760> ret: None
[1714503212732] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f2cbaf51760> ('ping', '>')
[1714503212732] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/ping }
[1714503212732] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ('>48:3f:da:55:07:5c/ping', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f2cbadcc8d0>>)
[1714503212732] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ret: None
[1714503212732] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f2cbaf51760> ret: None
[1714503212732] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f2cbaf51760> ('version', '>')
[1714503212732] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/version }
[1714503212732] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ('>48:3f:da:55:07:5c/version', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f2cbadcc8d0>>)
[1714503212732] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ret: None
[1714503212732] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f2cbaf51760> ret: None
[1714503212732] [DBG] HUB exit <function HUB.__on_connect at 0x7f2cbaf52020> ret: None
[1714503212732] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f2cbb15a660> ret: None
[1714503212732] [DBG] HUB exit <function HUB.connect at 0x7f2cbaf52f20> ret: None
[1714503212743] [DBG] HUB Step, state: 0 (next: 1714503213743)
[1714503212743] [DBG] HUB enter <function HUB.__send_reg at 0x7f2cbaf51ee0> ()
[1714503212743] [INFO] HUB Publish reg token: 48:3f:da:55:07:5c
[1714503212744] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f2cbb15a7a0> ('/reg', '48:3f:da:55:07:5c')
[1714503212744] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f2cbb15a7a0> ret: None
[1714503212744] [DBG] HUB exit <function HUB.__send_reg at 0x7f2cbaf51ee0> ret: None
[1714503213745] [DBG] HUB Step, state: 0 (next: 1714503214745)
[1714503213745] [DBG] HUB enter <function HUB.__send_reg at 0x7f2cbaf51ee0> ()
[1714503213745] [INFO] HUB Publish reg token: 48:3f:da:55:07:5c
[1714503213745] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f2cbb15a7a0> ('/reg', '48:3f:da:55:07:5c')
[1714503213745] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f2cbb15a7a0> ret: None
[1714503213745] [DBG] HUB exit <function HUB.__send_reg at 0x7f2cbaf51ee0> ret: None
[1714503213791] [DBG] HUB enter <function HUB.__on_message at 0x7f2cbaf523e0> ('/48:3f:da:55:07:5c/time', b'1714503213790')
[1714503213791] [INFO] HUB Message: {topic: /48:3f:da:55:07:5c/time, value: 1714503213790 }
[1714503213791] [DBG] HUB enter <function HUB.__time_hnd at 0x7f2cbaf518a0> ('1714503213790',)
[1714503213791] [INFO] HUB Registration finish, time: 1714503213790
[1714503213791] [DBG] FW-UPD enter <function device_base.register at 0x7f2cbaf50ae0> (1714503213,)
[1714503213791] [INFO] FW-UPD Device 3996365522 registration on the server @ 1714503213
[1714503213791] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f2cbaf51760> ('3996365522/#', '>')
[1714503213791] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/3996365522/# }
[1714503213791] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ('>48:3f:da:55:07:5c/3996365522/#', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f2cbadcc8d0>>)
[1714503213791] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2cbb15a8e0> ret: None
[1714503213791] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f2cbaf51760> ret: None
[1714503213791] [DBG] FW-UPD exit <function device_base.register at 0x7f2cbaf50ae0> ret: None
[1714503213791] [DBG] HUB exit <function HUB.__time_hnd at 0x7f2cbaf518a0> ret: None
[1714503213791] [DBG] HUB exit <function HUB.__on_message at 0x7f2cbaf523e0> ret: None
[1714503214746] [DBG] HUB Step, state: 1 (next: 1714503215746)
[1714503214746] [DBG] FW-UPD enter <function device_base.info_req at 0x7f2cbaf513a0> ()
[1714503214746] [DBG] FW-UPD exit <function device_base.info_req at 0x7f2cbaf513a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714503213}}
[1714503214746] [DBG] HUB enter <function HUB.pub_hub at 0x7f2cbaf51620> ('info', '{"mac": "48:3f:da:55:07:5c", "version": "R240430;master;38274a5b8a83c5fa684f71a958848479413f7085", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714503213}}]}', '/')
[1714503214746] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5c", "version": "R240430;master;38274a5b8a83c5fa684f71a958848479413f7085", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714503213}}]} }
[1714503214746] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f2cbb15a7a0> ('/48:3f:da:55:07:5c/info', '{"mac": "48:3f:da:55:07:5c", "version": "R240430;master;38274a5b8a83c5fa684f71a958848479413f7085", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714503213}}]}')
[1714503214746] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f2cbb15a7a0> ret: None
[1714503214746] [DBG] HUB exit <function HUB.pub_hub at 0x7f2cbaf51620> ret: None
[1714503215768] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f2cbb15ab60> ()
[1714503215768] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f2cbb15ab60> ret: None
Suite stderr:
2024-04-30 18:53:34,756 - TEST - INFO - OP take: 2022.745 ms
2024-04-30 18:53:34,758 - TEST - INFO - Connected with result code: 0
2024-04-30 18:53:34,767 - TEST - INFO - OP take: 10.115 ms
2024-04-30 18:53:35,768 - TEST - INFO - OP take: 0.007 ms
2024-04-30 18:53:35,768 - TEST - WARNING - Disconecting from broker