Test Report : TEST-last_will_test-20231112203807.xml

  • last_will_test

Test Suite: last_will_test-20231112203807

Results

Duration3.345 sec
Tests1
Failures0

Tests

last_will_test

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

Suite stdout:

[1699821487943] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1699821487943] [INFO] FW-UPD  Initialized
[1699821487943]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f9fb479f9c0> (<uclient.hub.HUB object at 0x7f9fb43a05d0>,)
[1699821487943]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f9fb479f9c0> ret: None
[1699821487943]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f9fb479e340> ('<48:3f:da:55:07:5b/status', '-1')
[1699821487943]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f9fb479e340> ret: None
[1699821487943]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f9fb479e0c0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f9fb43a05d0>>,)
[1699821487943]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f9fb479e0c0> ret: None
[1699821487943]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f9fb479e200> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f9fb43a05d0>>,)
[1699821487943]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f9fb479e200> ret: None
[1699821487943]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f9fb479d4e0> ('x.ks.ua', 1883)
[1699821488948] [INFO] HUB  Connected
[1699821488948]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9fb479dd00> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9fb43a05d0>>)
[1699821488992]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9fb479dd00> ret: None
[1699821488992]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9fb479dd00> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9fb43a05d0>>)
[1699821489036]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9fb479dd00> ret: None
[1699821489036] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1699821489036]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9fb479dd00> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9fb43a05d0>>)
[1699821489080]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9fb479dd00> ret: None
[1699821489080] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1699821489080]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9fb479dd00> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9fb43a05d0>>)
[1699821489124]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9fb479dd00> ret: None
[1699821489124] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1699821489124]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9fb479dd00> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9fb43a05d0>>)
[1699821489168]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9fb479dd00> ret: None
[1699821489168] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1699821489168]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9fb479dd00> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9fb43a05d0>>)
[1699821489212]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9fb479dd00> ret: None
[1699821489212] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1699821489212]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9fb479dd00> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9fb43a05d0>>)
[1699821489256]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9fb479dd00> ret: None
[1699821489256]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f9fb479d4e0> ret: None
[1699821489257]  [DBG] HUB  Step, state: 0 (next: 1699821490257)
[1699821489257] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1699821489257]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f9fb479dbc0> ('/reg', '48:3f:da:55:07:5b')
[1699821489300]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f9fb479dbc0> ret: None
[1699821489344] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1699821489303 }
[1699821489344] [INFO] HUB  Registration finish, time: 1699821489303
[1699821489344]  [DBG] FW-UPD  enter <function device_base.register at 0x7f9fb479fec0> (1699821489,)
[1699821489344] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1699821489
[1699821489344] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1699821489344]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f9fb479dd00> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f9fb43a05d0>>)
[1699821489388]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f9fb479dd00> ret: None
[1699821489388]  [DBG] FW-UPD  exit <function device_base.register at 0x7f9fb479fec0> ret: None
[1699821490257]  [DBG] HUB  Step, state: 1 (next: 1699821491257)
[1699821490257]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f9fb452c7c0> ()
[1699821490257]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f9fb452c7c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1699821489}}
[1699821490257] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231112;master;ad086b669325bee6ce018858acdd31cd9dd85e70", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699821489}}]} }
[1699821490257]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f9fb479dbc0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231112;master;ad086b669325bee6ce018858acdd31cd9dd85e70", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699821489}}]}')
[1699821490257]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f9fb479dbc0> ret: None
[1699821491277] [WARN] HUB  Disconecting from broker
[1699821491277] [WARN] MQTT  Reconnecting in 1s

Suite stderr:

2023-11-12 20:38:10,262 - TEST - INFO - OP take: 1004.897 ms
2023-11-12 20:38:10,270 - TEST - INFO - Connected with result code: 0
2023-11-12 20:38:10,273 - TEST - INFO - OP take: 10.072 ms
2023-11-12 20:38:11,287 - TEST - INFO - OP take: 10.121 ms
2023-11-12 20:38:11,288 - TEST - WARNING - Disconecting from broker