Test Report : TEST-last_will_test-20240211155944.xml

  • last_will_test

Test Suite: last_will_test-20240211155944

Results

Duration3.349 sec
Tests1
Failures0

Tests

last_will_test

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

Suite stdout:

[1707667184699] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1707667184700] [INFO] FW-UPD  Initialized
[1707667184700]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7efdfab8fce0> (<uclient.hub.HUB object at 0x7efdfaa5ad50>,)
[1707667184700]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7efdfab8fce0> ret: None
[1707667184700]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7efdfab8e660> ('<48:3f:da:55:07:5b/status', '-1')
[1707667184700]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7efdfab8e660> ret: None
[1707667184700]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7efdfab8e3e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7efdfaa5ad50>>,)
[1707667184700]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7efdfab8e3e0> ret: None
[1707667184700]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7efdfab8e520> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7efdfaa5ad50>>,)
[1707667184700]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7efdfab8e520> ret: None
[1707667184700] [WARN] HUB  Try to connect without uri-schema
[1707667184700]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7efdfab8dda0> ('x.ks.ua',)
[1707667185703] [INFO] HUB  Connected
[1707667185703]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7efdfab8e020> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7efdfaa5ad50>>)
[1707667185747]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7efdfab8e020> ret: None
[1707667185747]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7efdfab8e020> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7efdfaa5ad50>>)
[1707667185791]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7efdfab8e020> ret: None
[1707667185791] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1707667185791]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7efdfab8e020> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7efdfaa5ad50>>)
[1707667185835]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7efdfab8e020> ret: None
[1707667185835] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1707667185835]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7efdfab8e020> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7efdfaa5ad50>>)
[1707667185879]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7efdfab8e020> ret: None
[1707667185879] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1707667185879]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7efdfab8e020> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7efdfaa5ad50>>)
[1707667185923]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7efdfab8e020> ret: None
[1707667185923] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1707667185923]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7efdfab8e020> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7efdfaa5ad50>>)
[1707667185967]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7efdfab8e020> ret: None
[1707667185967] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1707667185967]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7efdfab8e020> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7efdfaa5ad50>>)
[1707667186011]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7efdfab8e020> ret: None
[1707667186011]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7efdfab8dda0> ret: None
[1707667186012]  [DBG] HUB  Step, state: 0 (next: 1707667187012)
[1707667186012] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1707667186012]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7efdfab8dee0> ('/reg', '48:3f:da:55:07:5b')
[1707667186055]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7efdfab8dee0> ret: None
[1707667186103] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1707667186058 }
[1707667186103] [INFO] HUB  Registration finish, time: 1707667186058
[1707667186103]  [DBG] FW-UPD  enter <function device_base.register at 0x7efdfa984220> (1707667186,)
[1707667186103] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1707667186
[1707667186103] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1707667186103]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7efdfab8e020> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7efdfaa5ad50>>)
[1707667186147]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7efdfab8e020> ret: None
[1707667186147]  [DBG] FW-UPD  exit <function device_base.register at 0x7efdfa984220> ret: None
[1707667187012]  [DBG] HUB  Step, state: 1 (next: 1707667188012)
[1707667187012]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7efdfa984ae0> ()
[1707667187012]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7efdfa984ae0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1707667186}}
[1707667187012] [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": 1707667186}}]} }
[1707667187012]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7efdfab8dee0> ('/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": 1707667186}}]}')
[1707667187012]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7efdfab8dee0> ret: None
[1707667188035] [WARN] HUB  Disconecting from broker
[1707667188035] [WARN] MQTT  Reconnecting in 1s

Suite stderr:

2024-02-11 15:59:47,022 - TEST - INFO - OP take: 1009.014 ms
2024-02-11 15:59:47,027 - TEST - INFO - Connected with result code: 0
2024-02-11 15:59:47,034 - TEST - INFO - OP take: 10.089 ms
2024-02-11 15:59:48,045 - TEST - INFO - OP take: 10.099 ms
2024-02-11 15:59:48,048 - TEST - WARNING - Disconecting from broker