Test Report : TEST-version_topic_test-20240503194211.xml
Test Suite: version_topic_test-20240503194211
Results
| Duration | 3.068 sec |
| Tests | 1 |
| Failures | 0 |
Tests
version_topic_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.068 sec |
| Failed | None |
None
Suite stdout:
[1714765331237] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1714765331237] [INFO] FW-UPD Initialized
[1714765331237] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f61107b0680> (<uclient.hub.HUB object at 0x7f611127bd10>,)
[1714765331237] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f61107b0680> ret: None
[1714765331237] [DBG] HUB enter <function HUB.register_root_cb at 0x7f61107b2700> ('>user/dev', <bound method user_device.on_user_dev of <uclient.fwupd.fwupd_device object at 0x7f611062c7d0>>)
[1714765331237] [DBG] HUB exit <function HUB.register_root_cb at 0x7f61107b2700> ret: None
[1714765331237] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f6110a2afc0> ('<48:3f:da:55:07:5c/status', '-1')
[1714765331237] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f6110a2afc0> ret: None
[1714765331237] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f6110a2ad40> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f611127bd10>>,)
[1714765331237] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f6110a2ad40> ret: None
[1714765331237] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f6110a2ae80> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f611127bd10>>,)
[1714765331237] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f6110a2ae80> ret: None
[1714765331237] [DBG] HUB enter <function HUB.connect at 0x7f61107b2fc0> ()
[1714765331238] [WARN] HUB Try to connect without uri-schema
[1714765331238] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f6110a2a700> ('x.ks.ua',)
[1714765332244] [DBG] HUB enter <function HUB.__on_connect at 0x7f61107b20c0> ()
[1714765332244] [INFO] HUB Connected
[1714765332244] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6110a2a980> ('>hub', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f611127bd10>>)
[1714765332245] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6110a2a980> ret: None
[1714765332245] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6110a2a980> ('>user/dev', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f611127bd10>>)
[1714765332245] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6110a2a980> ret: None
[1714765332245] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f61107b1800> ('time', '/')
[1714765332245] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5c/time }
[1714765332245] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6110a2a980> ('/48:3f:da:55:07:5c/time', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f611127bd10>>)
[1714765332245] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6110a2a980> ret: None
[1714765332245] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f61107b1800> ret: None
[1714765332245] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f61107b1800> ('lifetime', '>')
[1714765332245] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/lifetime }
[1714765332245] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6110a2a980> ('>48:3f:da:55:07:5c/lifetime', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f611127bd10>>)
[1714765332245] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6110a2a980> ret: None
[1714765332245] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f61107b1800> ret: None
[1714765332245] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f61107b1800> ('error', '>')
[1714765332245] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/error }
[1714765332245] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6110a2a980> ('>48:3f:da:55:07:5c/error', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f611127bd10>>)
[1714765332245] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6110a2a980> ret: None
[1714765332245] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f61107b1800> ret: None
[1714765332245] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f61107b1800> ('ping', '>')
[1714765332245] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/ping }
[1714765332245] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6110a2a980> ('>48:3f:da:55:07:5c/ping', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f611127bd10>>)
[1714765332245] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6110a2a980> ret: None
[1714765332245] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f61107b1800> ret: None
[1714765332245] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f61107b1800> ('version', '>')
[1714765332245] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/version }
[1714765332245] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6110a2a980> ('>48:3f:da:55:07:5c/version', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f611127bd10>>)
[1714765332245] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6110a2a980> ret: None
[1714765332245] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f61107b1800> ret: None
[1714765332245] [DBG] HUB exit <function HUB.__on_connect at 0x7f61107b20c0> ret: None
[1714765332245] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f6110a2a700> ret: None
[1714765332245] [DBG] HUB exit <function HUB.connect at 0x7f61107b2fc0> ret: None
[1714765332255] [DBG] HUB Step, state: 0 (next: 1714765333255)
[1714765332255] [DBG] HUB enter <function HUB.__send_reg at 0x7f61107b1f80> ()
[1714765332255] [INFO] HUB Publish reg token: 48:3f:da:55:07:5c
[1714765332256] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f6110a2a840> ('/reg', '48:3f:da:55:07:5c')
[1714765332256] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f6110a2a840> ret: None
[1714765332256] [DBG] HUB exit <function HUB.__send_reg at 0x7f61107b1f80> ret: None
[1714765332293] [DBG] HUB enter <function HUB.__on_message at 0x7f61107b2480> ('/48:3f:da:55:07:5c/time', b'1714765332291')
[1714765332293] [INFO] HUB Message: {topic: /48:3f:da:55:07:5c/time, value: 1714765332291 }
[1714765332293] [DBG] HUB enter <function HUB.__time_hnd at 0x7f61107b1940> ('1714765332291',)
[1714765332293] [INFO] HUB Registration finish, time: 1714765332291
[1714765332293] [DBG] FW-UPD enter <function device_base.register at 0x7f61107b0b80> (1714765332,)
[1714765332293] [INFO] FW-UPD Device 3996365522 registration on the server @ 1714765332
[1714765332293] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f61107b1800> ('3996365522/#', '>')
[1714765332293] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/3996365522/# }
[1714765332293] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f6110a2a980> ('>48:3f:da:55:07:5c/3996365522/#', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f611127bd10>>)
[1714765332293] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f6110a2a980> ret: None
[1714765332293] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f61107b1800> ret: None
[1714765332293] [DBG] FW-UPD exit <function device_base.register at 0x7f61107b0b80> ret: None
[1714765332293] [DBG] HUB exit <function HUB.__time_hnd at 0x7f61107b1940> ret: None
[1714765332293] [DBG] HUB exit <function HUB.__on_message at 0x7f61107b2480> ret: None
[1714765333258] [DBG] HUB Step, state: 1 (next: 1714765334258)
[1714765333258] [DBG] FW-UPD enter <function device_base.info_req at 0x7f61107b1440> ()
[1714765333258] [DBG] FW-UPD exit <function device_base.info_req at 0x7f61107b1440> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714765332}}
[1714765333258] [DBG] HUB enter <function HUB.pub_hub at 0x7f61107b16c0> ('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": 1714765332}}]}', '/')
[1714765333258] [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": 1714765332}}]} }
[1714765333258] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f6110a2a840> ('/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": 1714765332}}]}')
[1714765333259] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f6110a2a840> ret: None
[1714765333259] [DBG] HUB exit <function HUB.pub_hub at 0x7f61107b16c0> ret: None
[1714765334286] [DBG] HUB enter <function HUB.__on_message at 0x7f61107b2480> ('>48:3f:da:55:07:5c/version', b'version')
[1714765334286] [INFO] HUB Message: {topic: >48:3f:da:55:07:5c/version, value: version }
[1714765334286] [DBG] HUB enter <function HUB.__version_hnd at 0x7f61107b1e40> ('version',)
[1714765334286] [DBG] HUB enter <function HUB.pub_hub at 0x7f61107b16c0> ('version', 'R240503;master;c2667ff72f2b1f6acb109be9b5c2675332675736')
[1714765334286] [INFO] HUB Publish message: { topic: version, value: R240503;master;c2667ff72f2b1f6acb109be9b5c2675332675736 }
[1714765334286] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f6110a2a840> ('<48:3f:da:55:07:5c/version', 'R240503;master;c2667ff72f2b1f6acb109be9b5c2675332675736')
[1714765334287] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f6110a2a840> ret: None
[1714765334287] [DBG] HUB exit <function HUB.pub_hub at 0x7f61107b16c0> ret: None
[1714765334287] [DBG] HUB exit <function HUB.__version_hnd at 0x7f61107b1e40> ret: None
[1714765334287] [DBG] HUB exit <function HUB.__on_message at 0x7f61107b2480> ret: None
[1714765334296] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f6110a2ac00> ()
[1714765334297] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f6110a2ac00> ret: None
Suite stderr:
2024-05-03 19:42:13,273 - TEST - INFO - OP take: 1028.125 ms
2024-05-03 19:42:13,277 - TEST - INFO - Connected with result code: 0
2024-05-03 19:42:13,285 - TEST - INFO - OP take: 10.08 ms
2024-05-03 19:42:14,285 - TEST - INFO - [hub] => { 'version' : 'version' }
2024-05-03 19:42:14,296 - TEST - INFO - OP take: 10.15 ms
2024-05-03 19:42:14,297 - TEST - WARNING - Disconecting from broker
2024-05-03 19:42:14,310 - TEST - WARNING - Disconecting from broker