Test Report : TEST-version_topic_test-20240505094133.xml

  • version_topic_test

Test Suite: version_topic_test-20240505094133

Results

Duration3.061 sec
Tests1
Failures0

Tests

version_topic_test

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

Suite stdout:

[1714902093065] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1714902093065] [INFO] FW-UPD  Initialized
[1714902093065]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f9dc8674860> (<uclient.hub.HUB object at 0x7f9dc867fc50>,)
[1714902093065]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f9dc8674860> ret: None
[1714902093065]  [DBG] HUB  enter <function HUB.register_root_cb at 0x7f9dc86768e0> ('>user/dev', <bound method user_device.on_user_dev of <uclient.fwupd.fwupd_device object at 0x7f9dc84f0c50>>)
[1714902093065]  [DBG] HUB  exit <function HUB.register_root_cb at 0x7f9dc86768e0> ret: None
[1714902093065]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f9dc888b240> ('<48:3f:da:55:07:5c/status', '-1')
[1714902093065]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f9dc888b240> ret: None
[1714902093065]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f9dc888afc0> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f9dc867fc50>>,)
[1714902093065]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f9dc888afc0> ret: None
[1714902093065]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f9dc888b100> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f9dc867fc50>>,)
[1714902093065]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f9dc888b100> ret: None
[1714902093065]  [DBG] HUB  enter <function HUB.connect at 0x7f9dc86771a0> ()
[1714902093065] [WARN] HUB  Try to connect without uri-schema
[1714902093065]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f9dc888a980> ('x.ks.ua',)
[1714902094070]  [DBG] HUB  enter <function HUB.__on_connect at 0x7f9dc86762a0> ()
[1714902094070] [INFO] HUB  Connected
[1714902094070]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9dc888ac00> ('>hub', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f9dc867fc50>>)
[1714902094070]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9dc888ac00> ret: None
[1714902094070]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9dc888ac00> ('>user/dev', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f9dc867fc50>>)
[1714902094070]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9dc888ac00> ret: None
[1714902094070]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7f9dc86759e0> ('time', '/')
[1714902094070] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5c/time }
[1714902094070]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9dc888ac00> ('/48:3f:da:55:07:5c/time', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f9dc867fc50>>)
[1714902094070]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9dc888ac00> ret: None
[1714902094070]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7f9dc86759e0> ret: None
[1714902094070]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7f9dc86759e0> ('lifetime', '>')
[1714902094070] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/lifetime }
[1714902094070]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9dc888ac00> ('>48:3f:da:55:07:5c/lifetime', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f9dc867fc50>>)
[1714902094071]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9dc888ac00> ret: None
[1714902094071]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7f9dc86759e0> ret: None
[1714902094071]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7f9dc86759e0> ('error', '>')
[1714902094071] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/error }
[1714902094071]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9dc888ac00> ('>48:3f:da:55:07:5c/error', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f9dc867fc50>>)
[1714902094071]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9dc888ac00> ret: None
[1714902094071]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7f9dc86759e0> ret: None
[1714902094071]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7f9dc86759e0> ('ping', '>')
[1714902094071] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/ping }
[1714902094071]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9dc888ac00> ('>48:3f:da:55:07:5c/ping', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f9dc867fc50>>)
[1714902094071]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9dc888ac00> ret: None
[1714902094071]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7f9dc86759e0> ret: None
[1714902094071]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7f9dc86759e0> ('version', '>')
[1714902094071] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/version }
[1714902094071]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9dc888ac00> ('>48:3f:da:55:07:5c/version', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f9dc867fc50>>)
[1714902094071]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9dc888ac00> ret: None
[1714902094071]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7f9dc86759e0> ret: None
[1714902094071]  [DBG] HUB  exit <function HUB.__on_connect at 0x7f9dc86762a0> ret: None
[1714902094071]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f9dc888a980> ret: None
[1714902094071]  [DBG] HUB  exit <function HUB.connect at 0x7f9dc86771a0> ret: None
[1714902094082]  [DBG] HUB  Step, state: 0 (next: 1714902095082)
[1714902094083]  [DBG] HUB  enter <function HUB.__send_reg at 0x7f9dc8676160> ()
[1714902094083] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5c
[1714902094083]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f9dc888aac0> ('/reg', '48:3f:da:55:07:5c')
[1714902094083]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f9dc888aac0> ret: None
[1714902094083]  [DBG] HUB  exit <function HUB.__send_reg at 0x7f9dc8676160> ret: None
[1714902094118]  [DBG] HUB  enter <function HUB.__on_message at 0x7f9dc8676660> ('/48:3f:da:55:07:5c/time', b'1714902094116')
[1714902094118] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5c/time, value: 1714902094116 }
[1714902094118]  [DBG] HUB  enter <function HUB.__time_hnd at 0x7f9dc8675b20> ('1714902094116',)
[1714902094118] [INFO] HUB  Registration finish, time: 1714902094116
[1714902094118]  [DBG] FW-UPD  enter <function device_base.register at 0x7f9dc8674d60> (1714902094,)
[1714902094118] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1714902094
[1714902094118]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7f9dc86759e0> ('3996365522/#', '>')
[1714902094118] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/3996365522/# }
[1714902094118]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9dc888ac00> ('>48:3f:da:55:07:5c/3996365522/#', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f9dc867fc50>>)
[1714902094118]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9dc888ac00> ret: None
[1714902094118]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7f9dc86759e0> ret: None
[1714902094118]  [DBG] FW-UPD  exit <function device_base.register at 0x7f9dc8674d60> ret: None
[1714902094118]  [DBG] HUB  exit <function HUB.__time_hnd at 0x7f9dc8675b20> ret: None
[1714902094118]  [DBG] HUB  exit <function HUB.__on_message at 0x7f9dc8676660> ret: None
[1714902095090]  [DBG] HUB  Step, state: 1 (next: 1714902096090)
[1714902095090]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f9dc8675620> ()
[1714902095091]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f9dc8675620> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714902094}}
[1714902095091]  [DBG] HUB  enter <function HUB.pub_hub at 0x7f9dc86758a0> ('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": 1714902094}}]}', '/')
[1714902095091] [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": 1714902094}}]} }
[1714902095091]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f9dc888aac0> ('/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": 1714902094}}]}')
[1714902095092]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f9dc888aac0> ret: None
[1714902095092]  [DBG] HUB  exit <function HUB.pub_hub at 0x7f9dc86758a0> ret: None
[1714902096115]  [DBG] HUB  enter <function HUB.__on_message at 0x7f9dc8676660> ('>48:3f:da:55:07:5c/version', b'version')
[1714902096115] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5c/version, value: version }
[1714902096115]  [DBG] HUB  enter <function HUB.__version_hnd at 0x7f9dc8676020> ('version',)
[1714902096115]  [DBG] HUB  enter <function HUB.pub_hub at 0x7f9dc86758a0> ('version', 'R240505;master;1bc93cf09952cae1e1905f746731ac58c1190052')
[1714902096115] [INFO] HUB  Publish message: { topic: version, value: R240505;master;1bc93cf09952cae1e1905f746731ac58c1190052 }
[1714902096115]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f9dc888aac0> ('<48:3f:da:55:07:5c/version', 'R240505;master;1bc93cf09952cae1e1905f746731ac58c1190052')
[1714902096116]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f9dc888aac0> ret: None
[1714902096116]  [DBG] HUB  exit <function HUB.pub_hub at 0x7f9dc86758a0> ret: None
[1714902096116]  [DBG] HUB  exit <function HUB.__version_hnd at 0x7f9dc8676020> ret: None
[1714902096116]  [DBG] HUB  exit <function HUB.__on_message at 0x7f9dc8676660> ret: None
[1714902096124]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f9dc888ae80> ()
[1714902096125]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f9dc888ae80> ret: None

Suite stderr:

2024-05-05 09:41:35,100 - TEST - INFO - OP take: 1027.6 ms
2024-05-05 09:41:35,103 - TEST - INFO - Connected with result code: 0
2024-05-05 09:41:35,111 - TEST - INFO - OP take: 10.106 ms
2024-05-05 09:41:36,112 - TEST - INFO - [hub] => { 'version' : 'version' }
2024-05-05 09:41:36,124 - TEST - INFO - OP take: 10.178 ms
2024-05-05 09:41:36,125 - TEST - WARNING - Disconecting from broker