Test Report : TEST-hub_topic_test-20240120191109.xml

  • hub_topic_test

Test Suite: hub_topic_test-20240120191109

Results

Duration3.336 sec
Tests1
Failures0

Tests

hub_topic_test

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

Suite stdout:

[1705777869665] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1705777869665] [INFO] FW-UPD  Initialized
[1705777869665]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7feaed30c220> (<uclient.hub.HUB object at 0x7feaedf57390>,)
[1705777869665]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7feaed30c220> ret: None
[1705777869665]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7feaed576b60> ('<48:3f:da:55:07:5b/status', '-1')
[1705777869665]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7feaed576b60> ret: None
[1705777869665]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7feaed5768e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7feaedf57390>>,)
[1705777869665]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7feaed5768e0> ret: None
[1705777869665]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7feaed576a20> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7feaedf57390>>,)
[1705777869665]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7feaed576a20> ret: None
[1705777869665] [WARN] HUB  Try to connect without uri-schema
[1705777869665]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7feaed575d00> ('x.ks.ua',)
[1705777870670] [INFO] HUB  Connected
[1705777870670]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7feaed576520> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7feaedf57390>>)
[1705777870711]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7feaed576520> ret: None
[1705777870711]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7feaed576520> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7feaedf57390>>)
[1705777870755]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7feaed576520> ret: None
[1705777870755] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1705777870755]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7feaed576520> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7feaedf57390>>)
[1705777870799]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7feaed576520> ret: None
[1705777870799] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1705777870799]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7feaed576520> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7feaedf57390>>)
[1705777870843]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7feaed576520> ret: None
[1705777870843] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1705777870843]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7feaed576520> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7feaedf57390>>)
[1705777870887]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7feaed576520> ret: None
[1705777870887] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1705777870887]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7feaed576520> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7feaedf57390>>)
[1705777870931]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7feaed576520> ret: None
[1705777870931] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1705777870931]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7feaed576520> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7feaedf57390>>)
[1705777870975]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7feaed576520> ret: None
[1705777870975]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7feaed575d00> ret: None
[1705777870976]  [DBG] HUB  Step, state: 0 (next: 1705777871976)
[1705777870976] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1705777870976]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7feaed5763e0> ('/reg', '48:3f:da:55:07:5b')
[1705777871020]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7feaed5763e0> ret: None
[1705777871063] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1705777871021 }
[1705777871063] [INFO] HUB  Registration finish, time: 1705777871021
[1705777871063]  [DBG] FW-UPD  enter <function device_base.register at 0x7feaed30c720> (1705777871,)
[1705777871063] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1705777871
[1705777871063] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1705777871063]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7feaed576520> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7feaedf57390>>)
[1705777871107]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7feaed576520> ret: None
[1705777871107]  [DBG] FW-UPD  exit <function device_base.register at 0x7feaed30c720> ret: None
[1705777871976]  [DBG] HUB  Step, state: 1 (next: 1705777872976)
[1705777871976]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7feaed30cfe0> ()
[1705777871976]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7feaed30cfe0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1705777871}}
[1705777871976] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240120;master;8222f96dd73c289fcc6652c68753a172c6033809", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1705777871}}]} }
[1705777871976]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7feaed5763e0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240120;master;8222f96dd73c289fcc6652c68753a172c6033809", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1705777871}}]}')
[1705777871976]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7feaed5763e0> ret: None
[1705777872998] [INFO] HUB  Message: {topic: >hub, value: 3996365522 }
[1705777872998]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7feaed5763e0> ('<hub', '48:3f:da:55:07:5b')
[1705777872998]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7feaed5763e0> ret: None
[1705777872999]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7feaed5767a0> ()
[1705777873000]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7feaed5767a0> ret: None

Suite stderr:

2024-01-20 19:11:11,982 - TEST - INFO - OP take: 1006.843 ms
2024-01-20 19:11:11,991 - TEST - INFO - Connected with result code: 0
2024-01-20 19:11:11,995 - TEST - INFO - OP take: 10.07 ms
2024-01-20 19:11:12,999 - TEST - INFO - OP take: 0.005 ms
2024-01-20 19:11:13,000 - TEST - WARNING - Disconecting from broker
ERROR:root:Exception raised on main-loop {exception: 'NoneType' object has no attribute 'recv'}