Test Report : TEST-ping_topic_test-20240505094138.xml

  • ping_topic_test

Test Suite: ping_topic_test-20240505094138

Results

Duration3.072 sec
Tests1
Failures0

Tests

ping_topic_test

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

Suite stdout:

[1714902098822] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1714902098823] [INFO] FW-UPD  Initialized
[1714902098823]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fc459c84860> (<uclient.hub.HUB object at 0x7fc459b00b90>,)
[1714902098824]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fc459c84860> ret: None
[1714902098824]  [DBG] HUB  enter <function HUB.register_root_cb at 0x7fc459c868e0> ('>user/dev', <bound method user_device.on_user_dev of <uclient.fwupd.fwupd_device object at 0x7fc459b00a90>>)
[1714902098824]  [DBG] HUB  exit <function HUB.register_root_cb at 0x7fc459c868e0> ret: None
[1714902098824]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fc459e8f240> ('<48:3f:da:55:07:5c/status', '-1')
[1714902098824]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fc459e8f240> ret: None
[1714902098824]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fc459e8efc0> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fc459b00b90>>,)
[1714902098824]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fc459e8efc0> ret: None
[1714902098824]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fc459e8f100> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fc459b00b90>>,)
[1714902098824]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fc459e8f100> ret: None
[1714902098824]  [DBG] HUB  enter <function HUB.connect at 0x7fc459c871a0> ()
[1714902098824] [WARN] HUB  Try to connect without uri-schema
[1714902098824]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fc459e8e980> ('x.ks.ua',)
[1714902099830]  [DBG] HUB  enter <function HUB.__on_connect at 0x7fc459c862a0> ()
[1714902099830] [INFO] HUB  Connected
[1714902099830]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc459e8ec00> ('>hub', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fc459b00b90>>)
[1714902099830]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc459e8ec00> ret: None
[1714902099830]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc459e8ec00> ('>user/dev', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fc459b00b90>>)
[1714902099830]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc459e8ec00> ret: None
[1714902099830]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fc459c859e0> ('time', '/')
[1714902099830] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5c/time }
[1714902099830]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc459e8ec00> ('/48:3f:da:55:07:5c/time', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fc459b00b90>>)
[1714902099830]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc459e8ec00> ret: None
[1714902099830]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fc459c859e0> ret: None
[1714902099830]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fc459c859e0> ('lifetime', '>')
[1714902099830] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/lifetime }
[1714902099830]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc459e8ec00> ('>48:3f:da:55:07:5c/lifetime', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fc459b00b90>>)
[1714902099830]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc459e8ec00> ret: None
[1714902099830]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fc459c859e0> ret: None
[1714902099830]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fc459c859e0> ('error', '>')
[1714902099830] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/error }
[1714902099830]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc459e8ec00> ('>48:3f:da:55:07:5c/error', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fc459b00b90>>)
[1714902099830]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc459e8ec00> ret: None
[1714902099830]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fc459c859e0> ret: None
[1714902099831]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fc459c859e0> ('ping', '>')
[1714902099831] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/ping }
[1714902099831]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc459e8ec00> ('>48:3f:da:55:07:5c/ping', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fc459b00b90>>)
[1714902099831]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc459e8ec00> ret: None
[1714902099831]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fc459c859e0> ret: None
[1714902099831]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fc459c859e0> ('version', '>')
[1714902099831] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/version }
[1714902099831]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc459e8ec00> ('>48:3f:da:55:07:5c/version', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fc459b00b90>>)
[1714902099831]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc459e8ec00> ret: None
[1714902099831]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fc459c859e0> ret: None
[1714902099831]  [DBG] HUB  exit <function HUB.__on_connect at 0x7fc459c862a0> ret: None
[1714902099831]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fc459e8e980> ret: None
[1714902099831]  [DBG] HUB  exit <function HUB.connect at 0x7fc459c871a0> ret: None
[1714902099842]  [DBG] HUB  Step, state: 0 (next: 1714902100842)
[1714902099842]  [DBG] HUB  enter <function HUB.__send_reg at 0x7fc459c86160> ()
[1714902099842] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5c
[1714902099842]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fc459e8eac0> ('/reg', '48:3f:da:55:07:5c')
[1714902099842]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fc459e8eac0> ret: None
[1714902099842]  [DBG] HUB  exit <function HUB.__send_reg at 0x7fc459c86160> ret: None
[1714902099875]  [DBG] HUB  enter <function HUB.__on_message at 0x7fc459c86660> ('/48:3f:da:55:07:5c/time', b'1714902099874')
[1714902099875] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5c/time, value: 1714902099874 }
[1714902099875]  [DBG] HUB  enter <function HUB.__time_hnd at 0x7fc459c85b20> ('1714902099874',)
[1714902099875] [INFO] HUB  Registration finish, time: 1714902099874
[1714902099875]  [DBG] FW-UPD  enter <function device_base.register at 0x7fc459c84d60> (1714902099,)
[1714902099875] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1714902099
[1714902099875]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fc459c859e0> ('3996365522/#', '>')
[1714902099875] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/3996365522/# }
[1714902099875]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc459e8ec00> ('>48:3f:da:55:07:5c/3996365522/#', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fc459b00b90>>)
[1714902099875]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc459e8ec00> ret: None
[1714902099875]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fc459c859e0> ret: None
[1714902099875]  [DBG] FW-UPD  exit <function device_base.register at 0x7fc459c84d60> ret: None
[1714902099875]  [DBG] HUB  exit <function HUB.__time_hnd at 0x7fc459c85b20> ret: None
[1714902099875]  [DBG] HUB  exit <function HUB.__on_message at 0x7fc459c86660> ret: None
[1714902100846]  [DBG] HUB  Step, state: 1 (next: 1714902101846)
[1714902100847]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fc459c85620> ()
[1714902100847]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fc459c85620> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714902099}}
[1714902100847]  [DBG] HUB  enter <function HUB.pub_hub at 0x7fc459c858a0> ('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": 1714902099}}]}', '/')
[1714902100847] [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": 1714902099}}]} }
[1714902100847]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fc459e8eac0> ('/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": 1714902099}}]}')
[1714902100847]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fc459e8eac0> ret: None
[1714902100847]  [DBG] HUB  exit <function HUB.pub_hub at 0x7fc459c858a0> ret: None
[1714902101883]  [DBG] HUB  enter <function HUB.__on_message at 0x7fc459c86660> ('>48:3f:da:55:07:5c/ping', b'ping')
[1714902101883] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5c/ping, value: ping }
[1714902101883]  [DBG] HUB  enter <function HUB.__ping_hnd at 0x7fc459c85ee0> ('ping',)
[1714902101883] [INFO] HUB  Ping command
[1714902101883]  [DBG] HUB  enter <function HUB.pub_hub at 0x7fc459c858a0> ('ping', 'OK')
[1714902101883] [INFO] HUB  Publish message: { topic: ping, value: OK }
[1714902101883]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fc459e8eac0> ('<48:3f:da:55:07:5c/ping', 'OK')
[1714902101883]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fc459e8eac0> ret: None
[1714902101883]  [DBG] HUB  exit <function HUB.pub_hub at 0x7fc459c858a0> ret: None
[1714902101883]  [DBG] HUB  exit <function HUB.__ping_hnd at 0x7fc459c85ee0> ret: None
[1714902101883]  [DBG] HUB  exit <function HUB.__on_message at 0x7fc459c86660> ret: None
[1714902101892]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fc459e8ee80> ()
[1714902101893]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fc459e8ee80> ret: None
[1714902101896]  [DBG] HUB  enter <function HUB.__on_disconnect at 0x7fc459c863e0> ()
[1714902101896] [WARN] HUB  Disconecting from broker
[1714902101896]  [DBG] HUB  exit <function HUB.__on_disconnect at 0x7fc459c863e0> ret: None

Suite stderr:

2024-05-05 09:41:40,861 - TEST - INFO - OP take: 1029.213 ms
2024-05-05 09:41:40,871 - TEST - INFO - Connected with result code: 0
2024-05-05 09:41:40,880 - TEST - INFO - OP take: 10.108 ms
2024-05-05 09:41:41,881 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2024-05-05 09:41:41,892 - TEST - INFO - OP take: 10.181 ms
2024-05-05 09:41:41,893 - TEST - WARNING - Disconecting from broker