Test Report : TEST-last_will_test-20240414062632.xml

  • last_will_test

Test Suite: last_will_test-20240414062632

Results

Duration3.346 sec
Tests1
Failures0

Tests

last_will_test

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

Suite stdout:

[1713075992557] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1713075992558] [INFO] FW-UPD  Initialized
[1713075992558]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f21ad723ce0> (<uclient.hub.HUB object at 0x7f21ad32ca10>,)
[1713075992558]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f21ad723ce0> ret: None
[1713075992558]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f21ad722660> ('<48:3f:da:55:07:5b/status', '-1')
[1713075992558]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f21ad722660> ret: None
[1713075992558]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f21ad7223e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f21ad32ca10>>,)
[1713075992558]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f21ad7223e0> ret: None
[1713075992558]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f21ad722520> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f21ad32ca10>>,)
[1713075992558]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f21ad722520> ret: None
[1713075992558] [WARN] HUB  Try to connect without uri-schema
[1713075992558]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f21ad721da0> ('x.ks.ua',)
[1713075993563] [INFO] HUB  Connected
[1713075993563]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21ad722020> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21ad32ca10>>)
[1713075993606]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21ad722020> ret: None
[1713075993606]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21ad722020> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21ad32ca10>>)
[1713075993650]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21ad722020> ret: None
[1713075993650] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713075993650]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21ad722020> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21ad32ca10>>)
[1713075993694]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21ad722020> ret: None
[1713075993694] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713075993694]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21ad722020> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21ad32ca10>>)
[1713075993738]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21ad722020> ret: None
[1713075993738] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713075993738]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21ad722020> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21ad32ca10>>)
[1713075993782]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21ad722020> ret: None
[1713075993782] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713075993782]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21ad722020> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21ad32ca10>>)
[1713075993826]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21ad722020> ret: None
[1713075993826] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713075993826]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21ad722020> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21ad32ca10>>)
[1713075993870]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21ad722020> ret: None
[1713075993870]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f21ad721da0> ret: None
[1713075993871]  [DBG] HUB  Step, state: 0 (next: 1713075994871)
[1713075993871] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1713075993871]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f21ad721ee0> ('/reg', '48:3f:da:55:07:5b')
[1713075993914]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f21ad721ee0> ret: None
[1713075993958] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1713075993918 }
[1713075993958] [INFO] HUB  Registration finish, time: 1713075993918
[1713075993958]  [DBG] FW-UPD  enter <function device_base.register at 0x7f21ad4b0220> (1713075993,)
[1713075993958] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1713075993
[1713075993958] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713075993958]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f21ad722020> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f21ad32ca10>>)
[1713075994003]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f21ad722020> ret: None
[1713075994003]  [DBG] FW-UPD  exit <function device_base.register at 0x7f21ad4b0220> ret: None
[1713075994871]  [DBG] HUB  Step, state: 1 (next: 1713075995871)
[1713075994871]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f21ad4b0ae0> ()
[1713075994871]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f21ad4b0ae0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713075993}}
[1713075994871] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d0952f68a2ecbb629e45cc7aa508fee8abd0626a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713075993}}]} }
[1713075994871]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f21ad721ee0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d0952f68a2ecbb629e45cc7aa508fee8abd0626a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713075993}}]}')
[1713075994871]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f21ad721ee0> ret: None
[1713075995891] [WARN] HUB  Disconecting from broker
[1713075995891] [WARN] MQTT  Reconnecting in 1s

Suite stderr:

2024-04-14 06:26:34,879 - TEST - INFO - OP take: 1007.637 ms
2024-04-14 06:26:34,883 - TEST - INFO - Connected with result code: 0
2024-04-14 06:26:34,890 - TEST - INFO - OP take: 10.114 ms
2024-04-14 06:26:35,901 - TEST - INFO - OP take: 10.139 ms
2024-04-14 06:26:35,902 - TEST - WARNING - Disconecting from broker
2024-04-14 06:26:35,903 - TEST - WARNING - Disconecting from broker
2024-04-14 06:26:35,904 - TEST - INFO - Connected with result code: 0