Test Report : TEST-hub_topic_test-20240414062626.xml

  • hub_topic_test

Test Suite: hub_topic_test-20240414062626

Results

Duration3.336 sec
Tests1
Failures0

Tests

hub_topic_test

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

Suite stdout:

[1713075986527] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1713075986527] [INFO] FW-UPD  Initialized
[1713075986527]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f4ed43c4540> (<uclient.hub.HUB object at 0x7f4ed42406d0>,)
[1713075986527]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f4ed43c4540> ret: None
[1713075986527]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f4ed4632e80> ('<48:3f:da:55:07:5b/status', '-1')
[1713075986527]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f4ed4632e80> ret: None
[1713075986527]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f4ed4632c00> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f4ed42406d0>>,)
[1713075986527]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f4ed4632c00> ret: None
[1713075986527]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f4ed4632d40> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f4ed42406d0>>,)
[1713075986527]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f4ed4632d40> ret: None
[1713075986527] [WARN] HUB  Try to connect without uri-schema
[1713075986527]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f4ed46325c0> ('x.ks.ua',)
[1713075987532] [INFO] HUB  Connected
[1713075987532]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f4ed4632840> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4ed42406d0>>)
[1713075987574]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f4ed4632840> ret: None
[1713075987574]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f4ed4632840> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4ed42406d0>>)
[1713075987618]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f4ed4632840> ret: None
[1713075987618] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713075987618]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f4ed4632840> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4ed42406d0>>)
[1713075987662]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f4ed4632840> ret: None
[1713075987662] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713075987662]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f4ed4632840> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4ed42406d0>>)
[1713075987706]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f4ed4632840> ret: None
[1713075987706] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713075987706]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f4ed4632840> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4ed42406d0>>)
[1713075987750]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f4ed4632840> ret: None
[1713075987750] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713075987750]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f4ed4632840> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4ed42406d0>>)
[1713075987794]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f4ed4632840> ret: None
[1713075987794] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713075987794]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f4ed4632840> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4ed42406d0>>)
[1713075987838]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f4ed4632840> ret: None
[1713075987838]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f4ed46325c0> ret: None
[1713075987839]  [DBG] HUB  Step, state: 0 (next: 1713075988839)
[1713075987839] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1713075987839]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f4ed4632700> ('/reg', '48:3f:da:55:07:5b')
[1713075987882]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f4ed4632700> ret: None
[1713075987926] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1713075987885 }
[1713075987926] [INFO] HUB  Registration finish, time: 1713075987885
[1713075987926]  [DBG] FW-UPD  enter <function device_base.register at 0x7f4ed43c4a40> (1713075987,)
[1713075987926] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1713075987
[1713075987926] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713075987926]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f4ed4632840> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4ed42406d0>>)
[1713075987970]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f4ed4632840> ret: None
[1713075987970]  [DBG] FW-UPD  exit <function device_base.register at 0x7f4ed43c4a40> ret: None
[1713075988839]  [DBG] HUB  Step, state: 1 (next: 1713075989839)
[1713075988839]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f4ed43c5300> ()
[1713075988839]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f4ed43c5300> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713075987}}
[1713075988839] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d0952f68a2ecbb629e45cc7aa508fee8abd0626a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713075987}}]} }
[1713075988839]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f4ed4632700> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d0952f68a2ecbb629e45cc7aa508fee8abd0626a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713075987}}]}')
[1713075988839]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f4ed4632700> ret: None
[1713075989860]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f4ed4632ac0> ()
[1713075989861]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f4ed4632ac0> ret: None
[1713075989862] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-04-14 06:26:28,844 - TEST - INFO - OP take: 1005.109 ms
2024-04-14 06:26:28,849 - TEST - INFO - Connected with result code: 0
2024-04-14 06:26:28,856 - TEST - INFO - OP take: 10.129 ms
2024-04-14 06:26:29,859 - TEST - INFO - OP take: 0.024 ms
2024-04-14 06:26:29,861 - TEST - WARNING - Disconecting from broker