Test Report : TEST-hub_topic_test-20240503194828.xml

  • hub_topic_test

Test Suite: hub_topic_test-20240503194828

Results

Duration3.067 sec
Tests1
Failures0

Tests

hub_topic_test

Test case:test
Outcome:Passed
Duration:3.067 sec
FailedNone
None

Suite stdout:

[1714765708177] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1714765708178] [INFO] FW-UPD  Initialized
[1714765708178]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f210fc905e0> (<uclient.hub.HUB object at 0x7f210fb0c750>,)
[1714765708178]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f210fc905e0> ret: None
[1714765708178]  [DBG] HUB  enter <function HUB.register_root_cb at 0x7f210fc92660> ('>user/dev', <bound method user_device.on_user_dev of <uclient.fwupd.fwupd_device object at 0x7f210fb0c690>>)
[1714765708178]  [DBG] HUB  exit <function HUB.register_root_cb at 0x7f210fc92660> ret: None
[1714765708178]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f210fe9af20> ('<48:3f:da:55:07:5c/status', '-1')
[1714765708178]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f210fe9af20> ret: None
[1714765708178]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f210fe9aca0> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f210fb0c750>>,)
[1714765708178]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f210fe9aca0> ret: None
[1714765708178]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f210fe9ade0> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f210fb0c750>>,)
[1714765708178]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f210fe9ade0> ret: None
[1714765708178]  [DBG] HUB  enter <function HUB.connect at 0x7f210fc92f20> ()
[1714765708178] [WARN] HUB  Try to connect without uri-schema
[1714765708178]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f210fe9a660> ('x.ks.ua',)
[1714765709186]  [DBG] HUB  enter <function HUB.__on_connect at 0x7f210fc92020> ()
[1714765709186] [INFO] HUB  Connected
[1714765709186]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ('>hub', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f210fb0c750>>)
[1714765709186]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ret: None
[1714765709186]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ('>user/dev', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f210fb0c750>>)
[1714765709186]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ret: None
[1714765709186]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7f210fc91760> ('time', '/')
[1714765709186] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5c/time }
[1714765709186]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ('/48:3f:da:55:07:5c/time', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f210fb0c750>>)
[1714765709186]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ret: None
[1714765709186]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7f210fc91760> ret: None
[1714765709186]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7f210fc91760> ('lifetime', '>')
[1714765709186] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/lifetime }
[1714765709186]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ('>48:3f:da:55:07:5c/lifetime', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f210fb0c750>>)
[1714765709187]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ret: None
[1714765709187]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7f210fc91760> ret: None
[1714765709187]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7f210fc91760> ('error', '>')
[1714765709187] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/error }
[1714765709187]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ('>48:3f:da:55:07:5c/error', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f210fb0c750>>)
[1714765709187]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ret: None
[1714765709187]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7f210fc91760> ret: None
[1714765709187]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7f210fc91760> ('ping', '>')
[1714765709187] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/ping }
[1714765709187]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ('>48:3f:da:55:07:5c/ping', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f210fb0c750>>)
[1714765709187]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ret: None
[1714765709187]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7f210fc91760> ret: None
[1714765709187]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7f210fc91760> ('version', '>')
[1714765709187] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/version }
[1714765709187]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ('>48:3f:da:55:07:5c/version', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f210fb0c750>>)
[1714765709187]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ret: None
[1714765709187]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7f210fc91760> ret: None
[1714765709187]  [DBG] HUB  exit <function HUB.__on_connect at 0x7f210fc92020> ret: None
[1714765709187]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f210fe9a660> ret: None
[1714765709187]  [DBG] HUB  exit <function HUB.connect at 0x7f210fc92f20> ret: None
[1714765709198]  [DBG] HUB  Step, state: 0 (next: 1714765710198)
[1714765709198]  [DBG] HUB  enter <function HUB.__send_reg at 0x7f210fc91ee0> ()
[1714765709198] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5c
[1714765709198]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f210fe9a7a0> ('/reg', '48:3f:da:55:07:5c')
[1714765709198]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f210fe9a7a0> ret: None
[1714765709198]  [DBG] HUB  exit <function HUB.__send_reg at 0x7f210fc91ee0> ret: None
[1714765709243]  [DBG] HUB  enter <function HUB.__on_message at 0x7f210fc923e0> ('/48:3f:da:55:07:5c/time', b'1714765709241')
[1714765709244] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5c/time, value: 1714765709241 }
[1714765709244]  [DBG] HUB  enter <function HUB.__time_hnd at 0x7f210fc918a0> ('1714765709241',)
[1714765709244] [INFO] HUB  Registration finish, time: 1714765709241
[1714765709244]  [DBG] FW-UPD  enter <function device_base.register at 0x7f210fc90ae0> (1714765709,)
[1714765709244] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1714765709
[1714765709244]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7f210fc91760> ('3996365522/#', '>')
[1714765709244] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/3996365522/# }
[1714765709244]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ('>48:3f:da:55:07:5c/3996365522/#', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f210fb0c750>>)
[1714765709244]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f210fe9a8e0> ret: None
[1714765709244]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7f210fc91760> ret: None
[1714765709244]  [DBG] FW-UPD  exit <function device_base.register at 0x7f210fc90ae0> ret: None
[1714765709244]  [DBG] HUB  exit <function HUB.__time_hnd at 0x7f210fc918a0> ret: None
[1714765709244]  [DBG] HUB  exit <function HUB.__on_message at 0x7f210fc923e0> ret: None
[1714765710199]  [DBG] HUB  Step, state: 1 (next: 1714765711199)
[1714765710201]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f210fc913a0> ()
[1714765710201]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f210fc913a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714765709}}
[1714765710201]  [DBG] HUB  enter <function HUB.pub_hub at 0x7f210fc91620> ('info', '{"mac": "48:3f:da:55:07:5c", "version": "R240503;master;c2667ff72f2b1f6acb109be9b5c2675332675736", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714765709}}]}', '/')
[1714765710201] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5c", "version": "R240503;master;c2667ff72f2b1f6acb109be9b5c2675332675736", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714765709}}]} }
[1714765710202]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f210fe9a7a0> ('/48:3f:da:55:07:5c/info', '{"mac": "48:3f:da:55:07:5c", "version": "R240503;master;c2667ff72f2b1f6acb109be9b5c2675332675736", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714765709}}]}')
[1714765710203]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f210fe9a7a0> ret: None
[1714765710203]  [DBG] HUB  exit <function HUB.pub_hub at 0x7f210fc91620> ret: None
[1714765711243]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f210fe9ab60> ()
[1714765711243]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f210fe9ab60> ret: None

Suite stderr:

2024-05-03 19:48:30,231 - TEST - INFO - OP take: 1042.63 ms
2024-05-03 19:48:30,235 - TEST - INFO - Connected with result code: 0
2024-05-03 19:48:30,242 - TEST - INFO - OP take: 10.132 ms
2024-05-03 19:48:31,243 - TEST - INFO - OP take: 0.005 ms
2024-05-03 19:48:31,244 - TEST - WARNING - Disconecting from broker