Test Report : TEST-hub_topic_test-20240211155938.xml

  • hub_topic_test

Test Suite: hub_topic_test-20240211155938

Results

Duration3.353 sec
Tests1
Failures0

Tests

hub_topic_test

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

Suite stdout:

[1707667178828] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1707667178828] [INFO] FW-UPD  Initialized
[1707667178828]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7ff436ce0540> (<uclient.hub.HUB object at 0x7ff436b5d110>,)
[1707667178828]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7ff436ce0540> ret: None
[1707667178828]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7ff436eeae80> ('<48:3f:da:55:07:5b/status', '-1')
[1707667178828]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7ff436eeae80> ret: None
[1707667178828]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7ff436eeac00> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7ff436b5d110>>,)
[1707667178828]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7ff436eeac00> ret: None
[1707667178828]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7ff436eead40> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7ff436b5d110>>,)
[1707667178828]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7ff436eead40> ret: None
[1707667178828] [WARN] HUB  Try to connect without uri-schema
[1707667178828]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7ff436eea5c0> ('x.ks.ua',)
[1707667179834] [INFO] HUB  Connected
[1707667179834]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff436eea840> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff436b5d110>>)
[1707667179875]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff436eea840> ret: None
[1707667179875]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff436eea840> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff436b5d110>>)
[1707667179919]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff436eea840> ret: None
[1707667179919] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1707667179919]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff436eea840> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff436b5d110>>)
[1707667179963]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff436eea840> ret: None
[1707667179964] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1707667179964]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff436eea840> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff436b5d110>>)
[1707667180007]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff436eea840> ret: None
[1707667180007] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1707667180007]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff436eea840> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff436b5d110>>)
[1707667180051]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff436eea840> ret: None
[1707667180051] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1707667180051]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff436eea840> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff436b5d110>>)
[1707667180095]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff436eea840> ret: None
[1707667180095] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1707667180095]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff436eea840> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff436b5d110>>)
[1707667180139]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff436eea840> ret: None
[1707667180139]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7ff436eea5c0> ret: None
[1707667180140]  [DBG] HUB  Step, state: 0 (next: 1707667181140)
[1707667180140] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1707667180140]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7ff436eea700> ('/reg', '48:3f:da:55:07:5b')
[1707667180183]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7ff436eea700> ret: None
[1707667180227] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1707667180186 }
[1707667180227] [INFO] HUB  Registration finish, time: 1707667180186
[1707667180227]  [DBG] FW-UPD  enter <function device_base.register at 0x7ff436ce0a40> (1707667180,)
[1707667180227] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1707667180
[1707667180227] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1707667180227]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff436eea840> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff436b5d110>>)
[1707667180271]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff436eea840> ret: None
[1707667180271]  [DBG] FW-UPD  exit <function device_base.register at 0x7ff436ce0a40> ret: None
[1707667181140]  [DBG] HUB  Step, state: 1 (next: 1707667182140)
[1707667181140]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7ff436ce1300> ()
[1707667181140]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7ff436ce1300> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1707667180}}
[1707667181140] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240211;master;c7a377ab91e966dd8ef50ec839bbd0cd5f178bbe", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707667180}}]} }
[1707667181140]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7ff436eea700> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240211;master;c7a377ab91e966dd8ef50ec839bbd0cd5f178bbe", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707667180}}]}')
[1707667181140]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7ff436eea700> ret: None
[1707667182167] [INFO] HUB  Message: {topic: >hub, value: 3996365522 }
[1707667182167]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7ff436eea700> ('<hub', '48:3f:da:55:07:5b')
[1707667182168]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7ff436eea700> ret: None
[1707667182172]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7ff436eeaac0> ()
[1707667182172]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7ff436eeaac0> ret: None
[1707667182173] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-02-11 15:59:41,150 - TEST - INFO - OP take: 1010.429 ms
2024-02-11 15:59:41,156 - TEST - INFO - Connected with result code: 0
2024-02-11 15:59:41,162 - TEST - INFO - OP take: 10.121 ms
2024-02-11 15:59:42,171 - TEST - INFO - OP take: 0.012 ms
2024-02-11 15:59:42,179 - TEST - WARNING - Disconecting from broker