Test Report : TEST-ping_topic_test-20240430184720.xml

  • ping_topic_test

Test Suite: ping_topic_test-20240430184720

Results

Duration4.06 sec
Tests1
Failures0

Tests

ping_topic_test

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

Suite stdout:

[1714502840604] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1714502840604] [INFO] FW-UPD  Initialized
[1714502840605]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fdf81720680> (<uclient.hub.HUB object at 0x7fdf8159c950>,)
[1714502840605]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fdf81720680> ret: None
[1714502840605]  [DBG] HUB  enter <function HUB.register_root_cb at 0x7fdf81722700> ('>user/dev', <bound method user_device.on_user_dev of <uclient.fwupd.fwupd_device object at 0x7fdf81852ad0>>)
[1714502840605]  [DBG] HUB  exit <function HUB.register_root_cb at 0x7fdf81722700> ret: None
[1714502840605]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fdf8192afc0> ('<48:3f:da:55:07:5c/status', '-1')
[1714502840605]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fdf8192afc0> ret: None
[1714502840605]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fdf8192ad40> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fdf8159c950>>,)
[1714502840605]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fdf8192ad40> ret: None
[1714502840605]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fdf8192ae80> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fdf8159c950>>,)
[1714502840605]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fdf8192ae80> ret: None
[1714502840605]  [DBG] HUB  enter <function HUB.connect at 0x7fdf81722fc0> ()
[1714502840605] [WARN] HUB  Try to connect without uri-schema
[1714502840605]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fdf8192a700> ('x.ks.ua',)
[1714502841610]  [DBG] HUB  enter <function HUB.__on_connect at 0x7fdf817220c0> ()
[1714502841610] [INFO] HUB  Connected
[1714502841610]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf8192a980> ('>hub', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fdf8159c950>>)
[1714502841610]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf8192a980> ret: None
[1714502841610]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf8192a980> ('>user/dev', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fdf8159c950>>)
[1714502841610]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf8192a980> ret: None
[1714502841610]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fdf81721800> ('time', '/')
[1714502841610] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5c/time }
[1714502841610]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf8192a980> ('/48:3f:da:55:07:5c/time', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fdf8159c950>>)
[1714502841610]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf8192a980> ret: None
[1714502841610]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fdf81721800> ret: None
[1714502841610]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fdf81721800> ('lifetime', '>')
[1714502841611] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/lifetime }
[1714502841611]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf8192a980> ('>48:3f:da:55:07:5c/lifetime', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fdf8159c950>>)
[1714502841611]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf8192a980> ret: None
[1714502841611]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fdf81721800> ret: None
[1714502841611]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fdf81721800> ('error', '>')
[1714502841611] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/error }
[1714502841611]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf8192a980> ('>48:3f:da:55:07:5c/error', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fdf8159c950>>)
[1714502841611]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf8192a980> ret: None
[1714502841611]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fdf81721800> ret: None
[1714502841611]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fdf81721800> ('ping', '>')
[1714502841611] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/ping }
[1714502841611]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf8192a980> ('>48:3f:da:55:07:5c/ping', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fdf8159c950>>)
[1714502841611]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf8192a980> ret: None
[1714502841611]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fdf81721800> ret: None
[1714502841611]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fdf81721800> ('version', '>')
[1714502841611] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/version }
[1714502841611]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf8192a980> ('>48:3f:da:55:07:5c/version', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fdf8159c950>>)
[1714502841611]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf8192a980> ret: None
[1714502841611]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fdf81721800> ret: None
[1714502841611]  [DBG] HUB  exit <function HUB.__on_connect at 0x7fdf817220c0> ret: None
[1714502841611]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fdf8192a700> ret: None
[1714502841611]  [DBG] HUB  exit <function HUB.connect at 0x7fdf81722fc0> ret: None
[1714502841622]  [DBG] HUB  Step, state: 0 (next: 1714502842622)
[1714502841622]  [DBG] HUB  enter <function HUB.__send_reg at 0x7fdf81721f80> ()
[1714502841622] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5c
[1714502841622]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdf8192a840> ('/reg', '48:3f:da:55:07:5c')
[1714502841624]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdf8192a840> ret: None
[1714502841624]  [DBG] HUB  exit <function HUB.__send_reg at 0x7fdf81721f80> ret: None
[1714502842622]  [DBG] HUB  Step, state: 0 (next: 1714502843622)
[1714502842622]  [DBG] HUB  enter <function HUB.__send_reg at 0x7fdf81721f80> ()
[1714502842622] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5c
[1714502842622]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdf8192a840> ('/reg', '48:3f:da:55:07:5c')
[1714502842622]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdf8192a840> ret: None
[1714502842622]  [DBG] HUB  exit <function HUB.__send_reg at 0x7fdf81721f80> ret: None
[1714502842666]  [DBG] HUB  enter <function HUB.__on_message at 0x7fdf81722480> ('/48:3f:da:55:07:5c/time', b'1714502842665')
[1714502842666] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5c/time, value: 1714502842665 }
[1714502842666]  [DBG] HUB  enter <function HUB.__time_hnd at 0x7fdf81721940> ('1714502842665',)
[1714502842666] [INFO] HUB  Registration finish, time: 1714502842665
[1714502842666]  [DBG] FW-UPD  enter <function device_base.register at 0x7fdf81720b80> (1714502842,)
[1714502842666] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1714502842
[1714502842666]  [DBG] HUB  enter <function HUB.subscribe_hub at 0x7fdf81721800> ('3996365522/#', '>')
[1714502842666] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/3996365522/# }
[1714502842666]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fdf8192a980> ('>48:3f:da:55:07:5c/3996365522/#', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7fdf8159c950>>)
[1714502842667]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fdf8192a980> ret: None
[1714502842667]  [DBG] HUB  exit <function HUB.subscribe_hub at 0x7fdf81721800> ret: None
[1714502842667]  [DBG] FW-UPD  exit <function device_base.register at 0x7fdf81720b80> ret: None
[1714502842667]  [DBG] HUB  exit <function HUB.__time_hnd at 0x7fdf81721940> ret: None
[1714502842667]  [DBG] HUB  exit <function HUB.__on_message at 0x7fdf81722480> ret: None
[1714502843627]  [DBG] HUB  Step, state: 1 (next: 1714502844627)
[1714502843627]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fdf81721440> ()
[1714502843627]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fdf81721440> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714502842}}
[1714502843629]  [DBG] HUB  enter <function HUB.pub_hub at 0x7fdf817216c0> ('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": 1714502842}}]}', '/')
[1714502843629] [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": 1714502842}}]} }
[1714502843629]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdf8192a840> ('/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": 1714502842}}]}')
[1714502843629]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdf8192a840> ret: None
[1714502843629]  [DBG] HUB  exit <function HUB.pub_hub at 0x7fdf817216c0> ret: None
[1714502844653]  [DBG] HUB  enter <function HUB.__on_message at 0x7fdf81722480> ('>48:3f:da:55:07:5c/ping', b'ping')
[1714502844653] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5c/ping, value: ping }
[1714502844653]  [DBG] HUB  enter <function HUB.__ping_hnd at 0x7fdf81721d00> ('ping',)
[1714502844653] [INFO] HUB  Ping command
[1714502844653]  [DBG] HUB  enter <function HUB.pub_hub at 0x7fdf817216c0> ('ping', 'OK')
[1714502844653] [INFO] HUB  Publish message: { topic: ping, value: OK }
[1714502844653]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fdf8192a840> ('<48:3f:da:55:07:5c/ping', 'OK')
[1714502844654]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fdf8192a840> ret: None
[1714502844654]  [DBG] HUB  exit <function HUB.pub_hub at 0x7fdf817216c0> ret: None
[1714502844654]  [DBG] HUB  exit <function HUB.__ping_hnd at 0x7fdf81721d00> ret: None
[1714502844654]  [DBG] HUB  exit <function HUB.__on_message at 0x7fdf81722480> ret: None
[1714502844663]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fdf8192ac00> ()
[1714502844663]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fdf8192ac00> ret: None

Suite stderr:

2024-04-30 18:47:23,639 - TEST - INFO - OP take: 2027.534 ms
2024-04-30 18:47:23,643 - TEST - INFO - Connected with result code: 0
2024-04-30 18:47:23,651 - TEST - INFO - OP take: 10.095 ms
2024-04-30 18:47:24,652 - TEST - INFO - [hub] => { 'ping' : 'ping' }
2024-04-30 18:47:24,662 - TEST - INFO - OP take: 10.137 ms
2024-04-30 18:47:24,663 - TEST - WARNING - Disconecting from broker