Test Report : TEST-hub_topic_test-20231126191051.xml

  • hub_topic_test

Test Suite: hub_topic_test-20231126191051

Results

Duration3.338 sec
Tests1
Failures0

Tests

hub_topic_test

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

Suite stdout:

[1701025851023] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1701025851024] [INFO] FW-UPD  Initialized
[1701025851024]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f65abc34220> (<uclient.hub.HUB object at 0x7f65abaa8dd0>,)
[1701025851024]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f65abc34220> ret: None
[1701025851024]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f65abea2b60> ('<48:3f:da:55:07:5b/status', '-1')
[1701025851024]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f65abea2b60> ret: None
[1701025851024]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f65abea28e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f65abaa8dd0>>,)
[1701025851024]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f65abea28e0> ret: None
[1701025851024]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f65abea2a20> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f65abaa8dd0>>,)
[1701025851024]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f65abea2a20> ret: None
[1701025851024] [WARN] HUB  Try to connect without uri-schema
[1701025851024]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f65abea1d00> ('x.ks.ua',)
[1701025852030] [INFO] HUB  Connected
[1701025852030]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f65abea2520> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f65abaa8dd0>>)
[1701025852071]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f65abea2520> ret: None
[1701025852071]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f65abea2520> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f65abaa8dd0>>)
[1701025852116]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f65abea2520> ret: None
[1701025852116] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1701025852116]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f65abea2520> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f65abaa8dd0>>)
[1701025852159]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f65abea2520> ret: None
[1701025852159] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1701025852160]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f65abea2520> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f65abaa8dd0>>)
[1701025852203]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f65abea2520> ret: None
[1701025852203] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1701025852203]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f65abea2520> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f65abaa8dd0>>)
[1701025852247]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f65abea2520> ret: None
[1701025852247] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1701025852247]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f65abea2520> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f65abaa8dd0>>)
[1701025852291]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f65abea2520> ret: None
[1701025852291] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1701025852291]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f65abea2520> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f65abaa8dd0>>)
[1701025852335]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f65abea2520> ret: None
[1701025852335]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f65abea1d00> ret: None
[1701025852335]  [DBG] HUB  Step, state: 0 (next: 1701025853335)
[1701025852336] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1701025852336]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f65abea23e0> ('/reg', '48:3f:da:55:07:5b')
[1701025852379]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f65abea23e0> ret: None
[1701025852423] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1701025852382 }
[1701025852423] [INFO] HUB  Registration finish, time: 1701025852382
[1701025852423]  [DBG] FW-UPD  enter <function device_base.register at 0x7f65abc34720> (1701025852,)
[1701025852423] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1701025852
[1701025852423] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1701025852423]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f65abea2520> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f65abaa8dd0>>)
[1701025852467]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f65abea2520> ret: None
[1701025852467]  [DBG] FW-UPD  exit <function device_base.register at 0x7f65abc34720> ret: None
[1701025853335]  [DBG] HUB  Step, state: 1 (next: 1701025854335)
[1701025853335]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f65abc34fe0> ()
[1701025853335]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f65abc34fe0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1701025852}}
[1701025853335] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231126;master;d3e04e489d5bbf002244999aaf54b970400edf00", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1701025852}}]} }
[1701025853335]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f65abea23e0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231126;master;d3e04e489d5bbf002244999aaf54b970400edf00", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1701025852}}]}')
[1701025853335]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f65abea23e0> ret: None
[1701025854357] [INFO] HUB  Message: {topic: >hub, value: 3996365522 }
[1701025854357]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f65abea23e0> ('<hub', '48:3f:da:55:07:5b')
[1701025854357]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f65abea23e0> ret: None
[1701025854359]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f65abea27a0> ()
[1701025854360]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f65abea27a0> ret: None

Suite stderr:

2023-11-26 19:10:53,341 - TEST - INFO - OP take: 1005.222 ms
2023-11-26 19:10:53,348 - TEST - INFO - Connected with result code: 0
2023-11-26 19:10:53,354 - TEST - INFO - OP take: 10.253 ms
2023-11-26 19:10:54,359 - TEST - INFO - OP take: 0.004 ms
2023-11-26 19:10:54,360 - TEST - WARNING - Disconecting from broker
ERROR:root:Exception raised on main-loop {exception: 'NoneType' object has no attribute 'recv'}