Test Report : TEST-version_topic_test-20240430184714.xml

  • version_topic_test

Test Suite: version_topic_test-20240430184714

Results

Duration3.067 sec
Tests1
Failures0

Tests

version_topic_test

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

Suite stdout:

[1714502834963] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1714502834963] [INFO] FW-UPD  Initialized
[1714502834963]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fab9dcf0680> (<uclient.hub.HUB object at 0x7fab9dd1bd10>,)
[1714502834963]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fab9dcf0680> ret: None
[1714502834963]  [DBG] HUB  enter <function HUB.register_root_cb at 0x7fab9dcf2700> ('>user/dev', <bound method user_device.on_user_dev of <uclient.fwupd.fwupd_device object at 0x7fab9db6c850>>)
[1714502834963]  [DBG] HUB  exit <function HUB.register_root_cb at 0x7fab9dcf2700> ret: None
[1714502834963]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fab9df06fc0> ('<48:3f:da:55:07:5c/status', '-1')
[1714502834963]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fab9df06fc0> ret: None
[1714502834963]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fab9df06d40> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fab9dd1bd10>>,)
[1714502834963]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fab9df06d40> ret: None
[1714502834963]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fab9df06e80> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fab9dd1bd10>>,)
[1714502834963]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fab9df06e80> ret: None
[1714502834963]  [DBG] HUB  enter <function HUB.connect at 0x7fab9dcf2fc0> ()
[1714502834963] [WARN] HUB  Try to connect without uri-schema
[1714502834963]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fab9df06700> ('x.ks.ua',)
[1714502835968]  [DBG] HUB  enter <function HUB.__on_connect at 0x7fab9dcf20c0> ()
[1714502835968] [INFO] HUB  Connected
[1714502835968]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fab9df06980> ('>hub', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fab9dd1bd10>>)
[1714502835968]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fab9df06980> ret: None
[1714502835968]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fab9df06980> ('>user/dev', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fab9dd1bd10>>)
[1714502835968]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fab9df06980> ret: None
[1714502835968]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fab9dcf1800> ('time', '/')
[1714502835968] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5c/time }
[1714502835968]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fab9df06980> ('/48:3f:da:55:07:5c/time', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fab9dd1bd10>>)
[1714502835968]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fab9df06980> ret: None
[1714502835968]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fab9dcf1800> ret: None
[1714502835968]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fab9dcf1800> ('lifetime', '>')
[1714502835968] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/lifetime }
[1714502835968]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fab9df06980> ('>48:3f:da:55:07:5c/lifetime', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fab9dd1bd10>>)
[1714502835968]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fab9df06980> ret: None
[1714502835968]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fab9dcf1800> ret: None
[1714502835968]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fab9dcf1800> ('error', '>')
[1714502835968] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/error }
[1714502835969]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fab9df06980> ('>48:3f:da:55:07:5c/error', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fab9dd1bd10>>)
[1714502835969]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fab9df06980> ret: None
[1714502835969]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fab9dcf1800> ret: None
[1714502835969]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fab9dcf1800> ('ping', '>')
[1714502835969] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/ping }
[1714502835969]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fab9df06980> ('>48:3f:da:55:07:5c/ping', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fab9dd1bd10>>)
[1714502835969]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fab9df06980> ret: None
[1714502835969]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fab9dcf1800> ret: None
[1714502835969]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fab9dcf1800> ('version', '>')
[1714502835969] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/version }
[1714502835969]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fab9df06980> ('>48:3f:da:55:07:5c/version', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fab9dd1bd10>>)
[1714502835969]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fab9df06980> ret: None
[1714502835969]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fab9dcf1800> ret: None
[1714502835969]  [DBG] HUB  exit <function HUB.__on_connect at 0x7fab9dcf20c0> ret: None
[1714502835969]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fab9df06700> ret: None
[1714502835969]  [DBG] HUB  exit <function HUB.connect at 0x7fab9dcf2fc0> ret: None
[1714502835980]  [DBG] HUB  Step, state: 0 (next: 1714502836980)
[1714502835980]  [DBG] HUB  enter <function HUB.__send_reg at 0x7fab9dcf1f80> ()
[1714502835980] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5c
[1714502835980]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fab9df06840> ('/reg', '48:3f:da:55:07:5c')
[1714502835980]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fab9df06840> ret: None
[1714502835980]  [DBG] HUB  exit <function HUB.__send_reg at 0x7fab9dcf1f80> ret: None
[1714502836017]  [DBG] HUB  enter <function HUB.__on_message at 0x7fab9dcf2480> ('/48:3f:da:55:07:5c/time', b'1714502836016')
[1714502836017] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5c/time, value: 1714502836016 }
[1714502836017]  [DBG] HUB  enter <function HUB.__time_hnd at 0x7fab9dcf1940> ('1714502836016',)
[1714502836017] [INFO] HUB  Registration finish, time: 1714502836016
[1714502836017]  [DBG] FW-UPD  enter <function device_base.register at 0x7fab9dcf0b80> (1714502836,)
[1714502836017] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1714502836
[1714502836017]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fab9dcf1800> ('3996365522/#', '>')
[1714502836017] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/3996365522/# }
[1714502836017]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fab9df06980> ('>48:3f:da:55:07:5c/3996365522/#', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fab9dd1bd10>>)
[1714502836017]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fab9df06980> ret: None
[1714502836017]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fab9dcf1800> ret: None
[1714502836017]  [DBG] FW-UPD  exit <function device_base.register at 0x7fab9dcf0b80> ret: None
[1714502836017]  [DBG] HUB  exit <function HUB.__time_hnd at 0x7fab9dcf1940> ret: None
[1714502836017]  [DBG] HUB  exit <function HUB.__on_message at 0x7fab9dcf2480> ret: None
[1714502836988]  [DBG] HUB  Step, state: 1 (next: 1714502837988)
[1714502836988]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fab9dcf1440> ()
[1714502836988]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fab9dcf1440> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714502836}}
[1714502836988]  [DBG] HUB  enter <function HUB.pub_hub at 0x7fab9dcf16c0> ('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": 1714502836}}]}', '/')
[1714502836988] [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": 1714502836}}]} }
[1714502836989]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fab9df06840> ('/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": 1714502836}}]}')
[1714502836989]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fab9df06840> ret: None
[1714502836989]  [DBG] HUB  exit <function HUB.pub_hub at 0x7fab9dcf16c0> ret: None
[1714502838018]  [DBG] HUB  enter <function HUB.__on_message at 0x7fab9dcf2480> ('>48:3f:da:55:07:5c/version', b'version')
[1714502838018] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5c/version, value: version }
[1714502838018]  [DBG] HUB  enter <function HUB.__version_hnd at 0x7fab9dcf1e40> ('version',)
[1714502838018]  [DBG] HUB  enter <function HUB.pub_hub at 0x7fab9dcf16c0> ('version', 'R240430;master;38274a5b8a83c5fa684f71a958848479413f7085')
[1714502838018] [INFO] HUB  Publish message: { topic: version, value: R240430;master;38274a5b8a83c5fa684f71a958848479413f7085 }
[1714502838018]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fab9df06840> ('<48:3f:da:55:07:5c/version', 'R240430;master;38274a5b8a83c5fa684f71a958848479413f7085')
[1714502838019]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fab9df06840> ret: None
[1714502838019]  [DBG] HUB  exit <function HUB.pub_hub at 0x7fab9dcf16c0> ret: None
[1714502838019]  [DBG] HUB  exit <function HUB.__version_hnd at 0x7fab9dcf1e40> ret: None
[1714502838019]  [DBG] HUB  exit <function HUB.__on_message at 0x7fab9dcf2480> ret: None
[1714502838026]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fab9df06c00> ()
[1714502838026]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fab9df06c00> ret: None

Suite stderr:

2024-04-30 18:47:17,000 - TEST - INFO - OP take: 1030.354 ms
2024-04-30 18:47:17,003 - TEST - INFO - Connected with result code: 0
2024-04-30 18:47:17,011 - TEST - INFO - OP take: 10.06 ms
2024-04-30 18:47:18,012 - TEST - INFO - [hub] => { 'version' : 'version' }
2024-04-30 18:47:18,025 - TEST - INFO - OP take: 10.178 ms
2024-04-30 18:47:18,027 - TEST - WARNING - Disconecting from broker