Test Report : TEST-last_will_test-20240331123402.xml

  • last_will_test

Test Suite: last_will_test-20240331123402

Results

Duration3.344 sec
Tests1
Failures0

Tests

last_will_test

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

Suite stdout:

[1711888442531] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1711888442532] [INFO] FW-UPD  Initialized
[1711888442532]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7ff8eab43ce0> (<uclient.hub.HUB object at 0x7ff8ea750590>,)
[1711888442532]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7ff8eab43ce0> ret: None
[1711888442532]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7ff8eab42660> ('<48:3f:da:55:07:5b/status', '-1')
[1711888442532]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7ff8eab42660> ret: None
[1711888442532]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7ff8eab423e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7ff8ea750590>>,)
[1711888442532]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7ff8eab423e0> ret: None
[1711888442532]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7ff8eab42520> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7ff8ea750590>>,)
[1711888442532]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7ff8eab42520> ret: None
[1711888442532] [WARN] HUB  Try to connect without uri-schema
[1711888442532]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7ff8eab41da0> ('x.ks.ua',)
[1711888443536] [INFO] HUB  Connected
[1711888443536]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff8eab42020> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8ea750590>>)
[1711888443578]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff8eab42020> ret: None
[1711888443579]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff8eab42020> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8ea750590>>)
[1711888443622]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff8eab42020> ret: None
[1711888443622] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1711888443622]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff8eab42020> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8ea750590>>)
[1711888443666]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff8eab42020> ret: None
[1711888443666] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1711888443666]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff8eab42020> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8ea750590>>)
[1711888443710]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff8eab42020> ret: None
[1711888443710] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1711888443710]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff8eab42020> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8ea750590>>)
[1711888443754]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff8eab42020> ret: None
[1711888443754] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1711888443754]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff8eab42020> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8ea750590>>)
[1711888443798]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff8eab42020> ret: None
[1711888443798] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1711888443798]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff8eab42020> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8ea750590>>)
[1711888443842]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff8eab42020> ret: None
[1711888443842]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7ff8eab41da0> ret: None
[1711888443843]  [DBG] HUB  Step, state: 0 (next: 1711888444843)
[1711888443843] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1711888443843]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7ff8eab41ee0> ('/reg', '48:3f:da:55:07:5b')
[1711888443886]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7ff8eab41ee0> ret: None
[1711888443930] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1711888443888 }
[1711888443930] [INFO] HUB  Registration finish, time: 1711888443888
[1711888443930]  [DBG] FW-UPD  enter <function device_base.register at 0x7ff8ea8d4220> (1711888443,)
[1711888443930] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1711888443
[1711888443930] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1711888443930]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7ff8eab42020> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7ff8ea750590>>)
[1711888443974]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7ff8eab42020> ret: None
[1711888443974]  [DBG] FW-UPD  exit <function device_base.register at 0x7ff8ea8d4220> ret: None
[1711888444843]  [DBG] HUB  Step, state: 1 (next: 1711888445843)
[1711888444843]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7ff8ea8d4ae0> ()
[1711888444843]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7ff8ea8d4ae0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1711888443}}
[1711888444843] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711888443}}]} }
[1711888444843]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7ff8eab41ee0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240331;master;283e2051d299580edb55e5b0202453ee37bd3631", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711888443}}]}')
[1711888444843]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7ff8eab41ee0> ret: None
[1711888445860] [WARN] HUB  Disconecting from broker
[1711888445860] [WARN] MQTT  Reconnecting in 1s

Suite stderr:

2024-03-31 12:34:04,848 - TEST - INFO - OP take: 1005.051 ms
2024-03-31 12:34:04,853 - TEST - INFO - Connected with result code: 0
2024-03-31 12:34:04,860 - TEST - INFO - OP take: 10.101 ms
2024-03-31 12:34:05,872 - TEST - INFO - OP take: 10.154 ms
2024-03-31 12:34:05,873 - TEST - WARNING - Disconecting from broker
2024-03-31 12:34:05,874 - TEST - WARNING - Disconecting from broker
2024-03-31 12:34:05,879 - TEST - INFO - Connected with result code: 0