Test Report : TEST-last_will_test-20240427174717.xml

  • last_will_test

Test Suite: last_will_test-20240427174717

Results

Duration3.347 sec
Tests1
Failures0

Tests

last_will_test

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

Suite stdout:

[1714240037894] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1714240037894] [INFO] FW-UPD  Initialized
[1714240037894]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f73e90bfce0> (<uclient.hub.HUB object at 0x7f73e8ccc990>,)
[1714240037894]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f73e90bfce0> ret: None
[1714240037894]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f73e90be660> ('<48:3f:da:55:07:5b/status', '-1')
[1714240037894]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f73e90be660> ret: None
[1714240037895]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f73e90be3e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f73e8ccc990>>,)
[1714240037895]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f73e90be3e0> ret: None
[1714240037895]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f73e90be520> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f73e8ccc990>>,)
[1714240037895]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f73e90be520> ret: None
[1714240037895] [WARN] HUB  Try to connect without uri-schema
[1714240037895]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f73e90bdda0> ('x.ks.ua',)
[1714240038898] [INFO] HUB  Connected
[1714240038898]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73e90be020> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73e8ccc990>>)
[1714240038942]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73e90be020> ret: None
[1714240038942]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73e90be020> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73e8ccc990>>)
[1714240038986]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73e90be020> ret: None
[1714240038986] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1714240038986]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73e90be020> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73e8ccc990>>)
[1714240039031]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73e90be020> ret: None
[1714240039031] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1714240039031]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73e90be020> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73e8ccc990>>)
[1714240039074]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73e90be020> ret: None
[1714240039074] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1714240039074]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73e90be020> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73e8ccc990>>)
[1714240039118]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73e90be020> ret: None
[1714240039118] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1714240039118]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73e90be020> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73e8ccc990>>)
[1714240039162]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73e90be020> ret: None
[1714240039162] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1714240039162]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73e90be020> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73e8ccc990>>)
[1714240039206]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73e90be020> ret: None
[1714240039206]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f73e90bdda0> ret: None
[1714240039207]  [DBG] HUB  Step, state: 0 (next: 1714240040207)
[1714240039207] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1714240039207]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f73e90bdee0> ('/reg', '48:3f:da:55:07:5b')
[1714240039250]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f73e90bdee0> ret: None
[1714240039294] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1714240039253 }
[1714240039294] [INFO] HUB  Registration finish, time: 1714240039253
[1714240039294]  [DBG] FW-UPD  enter <function device_base.register at 0x7f73e8e50220> (1714240039,)
[1714240039294] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1714240039
[1714240039294] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1714240039294]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f73e90be020> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f73e8ccc990>>)
[1714240039338]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f73e90be020> ret: None
[1714240039338]  [DBG] FW-UPD  exit <function device_base.register at 0x7f73e8e50220> ret: None
[1714240040207]  [DBG] HUB  Step, state: 1 (next: 1714240041207)
[1714240040207]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f73e8e50ae0> ()
[1714240040207]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f73e8e50ae0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714240039}}
[1714240040207] [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": 1714240039}}]} }
[1714240040207]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f73e90bdee0> ('/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": 1714240039}}]}')
[1714240040207]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f73e90bdee0> ret: None
[1714240041228] [WARN] HUB  Disconecting from broker
[1714240041228] [WARN] MQTT  Reconnecting in 1s

Suite stderr:

2024-04-27 17:47:20,213 - TEST - INFO - OP take: 1005.369 ms
2024-04-27 17:47:20,223 - TEST - INFO - Connected with result code: 0
2024-04-27 17:47:20,227 - TEST - INFO - OP take: 10.081 ms
2024-04-27 17:47:21,238 - TEST - INFO - OP take: 10.139 ms
2024-04-27 17:47:21,239 - TEST - WARNING - Disconecting from broker
2024-04-27 17:47:21,240 - TEST - WARNING - Disconecting from broker