Test Report : TEST-hub_topic_test-20240427174711.xml

  • hub_topic_test

Test Suite: hub_topic_test-20240427174711

Results

Duration3.336 sec
Tests1
Failures0

Tests

hub_topic_test

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

Suite stdout:

[1714240031870] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1714240031870] [INFO] FW-UPD  Initialized
[1714240031870]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fea6a530540> (<uclient.hub.HUB object at 0x7fea6a3ac710>,)
[1714240031870]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fea6a530540> ret: None
[1714240031870]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fea6a79ee80> ('<48:3f:da:55:07:5b/status', '-1')
[1714240031870]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fea6a79ee80> ret: None
[1714240031870]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fea6a79ec00> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fea6a3ac710>>,)
[1714240031870]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fea6a79ec00> ret: None
[1714240031870]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fea6a79ed40> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fea6a3ac710>>,)
[1714240031870]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fea6a79ed40> ret: None
[1714240031870] [WARN] HUB  Try to connect without uri-schema
[1714240031870]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fea6a79e5c0> ('x.ks.ua',)
[1714240032874] [INFO] HUB  Connected
[1714240032874]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fea6a79e840> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fea6a3ac710>>)
[1714240032918]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fea6a79e840> ret: None
[1714240032918]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fea6a79e840> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fea6a3ac710>>)
[1714240032962]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fea6a79e840> ret: None
[1714240032962] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1714240032962]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fea6a79e840> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fea6a3ac710>>)
[1714240033006]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fea6a79e840> ret: None
[1714240033006] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1714240033006]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fea6a79e840> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fea6a3ac710>>)
[1714240033050]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fea6a79e840> ret: None
[1714240033050] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1714240033050]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fea6a79e840> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fea6a3ac710>>)
[1714240033094]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fea6a79e840> ret: None
[1714240033094] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1714240033094]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fea6a79e840> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fea6a3ac710>>)
[1714240033138]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fea6a79e840> ret: None
[1714240033138] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1714240033138]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fea6a79e840> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fea6a3ac710>>)
[1714240033182]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fea6a79e840> ret: None
[1714240033182]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fea6a79e5c0> ret: None
[1714240033183]  [DBG] HUB  Step, state: 0 (next: 1714240034183)
[1714240033183] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1714240033183]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fea6a79e700> ('/reg', '48:3f:da:55:07:5b')
[1714240033226]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fea6a79e700> ret: None
[1714240033270] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1714240033228 }
[1714240033270] [INFO] HUB  Registration finish, time: 1714240033228
[1714240033270]  [DBG] FW-UPD  enter <function device_base.register at 0x7fea6a530a40> (1714240033,)
[1714240033270] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1714240033
[1714240033270] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1714240033270]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fea6a79e840> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fea6a3ac710>>)
[1714240033314]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fea6a79e840> ret: None
[1714240033314]  [DBG] FW-UPD  exit <function device_base.register at 0x7fea6a530a40> ret: None
[1714240034183]  [DBG] HUB  Step, state: 1 (next: 1714240035183)
[1714240034183]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fea6a531300> ()
[1714240034183]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fea6a531300> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714240033}}
[1714240034183] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240427;master;5bb8fc89dabedc6937b87a53de9f9f8b0e057530", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714240033}}]} }
[1714240034183]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fea6a79e700> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240427;master;5bb8fc89dabedc6937b87a53de9f9f8b0e057530", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714240033}}]}')
[1714240034183]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fea6a79e700> ret: None
[1714240035203] [INFO] HUB  Message: {topic: >hub, value: 3996365522 }
[1714240035203]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fea6a79e700> ('<hub', '48:3f:da:55:07:5b')
[1714240035204]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fea6a79eac0> ()
[1714240035205]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fea6a79eac0> ret: None
[1714240035205] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-04-27 17:47:14,188 - TEST - INFO - OP take: 1005.241 ms
2024-04-27 17:47:14,195 - TEST - INFO - Connected with result code: 0
2024-04-27 17:47:14,201 - TEST - INFO - OP take: 10.12 ms
2024-04-27 17:47:15,202 - TEST - INFO - OP take: 0.004 ms
2024-04-27 17:47:15,205 - TEST - WARNING - Disconecting from broker