Test Report : TEST-last_will_test-20231210170726.xml

  • last_will_test

Test Suite: last_will_test-20231210170726

Results

Duration3.346 sec
Tests1
Failures0

Tests

last_will_test

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

Suite stdout:

[1702228046541] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1702228046541] [INFO] FW-UPD  Initialized
[1702228046541]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f94f98479c0> (<uclient.hub.HUB object at 0x7f94f944c610>,)
[1702228046541]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f94f98479c0> ret: None
[1702228046541]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f94f9846340> ('<48:3f:da:55:07:5b/status', '-1')
[1702228046541]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f94f9846340> ret: None
[1702228046541]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f94f98460c0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f94f944c610>>,)
[1702228046541]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f94f98460c0> ret: None
[1702228046541]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f94f9846200> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f94f944c610>>,)
[1702228046541]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f94f9846200> ret: None
[1702228046541] [WARN] HUB  Try to connect without uri-schema
[1702228046541]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f94f98454e0> ('x.ks.ua',)
[1702228047546] [INFO] HUB  Connected
[1702228047546]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f94f9845d00> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f94f944c610>>)
[1702228047587]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f94f9845d00> ret: None
[1702228047587]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f94f9845d00> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f94f944c610>>)
[1702228047631]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f94f9845d00> ret: None
[1702228047632] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1702228047632]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f94f9845d00> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f94f944c610>>)
[1702228047675]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f94f9845d00> ret: None
[1702228047675] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1702228047675]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f94f9845d00> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f94f944c610>>)
[1702228047719]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f94f9845d00> ret: None
[1702228047719] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1702228047719]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f94f9845d00> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f94f944c610>>)
[1702228047763]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f94f9845d00> ret: None
[1702228047763] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1702228047764]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f94f9845d00> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f94f944c610>>)
[1702228047807]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f94f9845d00> ret: None
[1702228047807] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1702228047807]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f94f9845d00> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f94f944c610>>)
[1702228047851]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f94f9845d00> ret: None
[1702228047852]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f94f98454e0> ret: None
[1702228047853]  [DBG] HUB  Step, state: 0 (next: 1702228048853)
[1702228047853] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1702228047853]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f94f9845bc0> ('/reg', '48:3f:da:55:07:5b')
[1702228047895]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f94f9845bc0> ret: None
[1702228047943] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1702228047899 }
[1702228047943] [INFO] HUB  Registration finish, time: 1702228047899
[1702228047943]  [DBG] FW-UPD  enter <function device_base.register at 0x7f94f9847ec0> (1702228047,)
[1702228047943] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1702228047
[1702228047943] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1702228047943]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f94f9845d00> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f94f944c610>>)
[1702228047987]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f94f9845d00> ret: None
[1702228047987]  [DBG] FW-UPD  exit <function device_base.register at 0x7f94f9847ec0> ret: None
[1702228048853]  [DBG] HUB  Step, state: 1 (next: 1702228049853)
[1702228048853]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f94f95d47c0> ()
[1702228048853]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f94f95d47c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1702228047}}
[1702228048853] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231210;master;e46d1687d9b13615140f1b18b85d3462da1a4742", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1702228047}}]} }
[1702228048853]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f94f9845bc0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231210;master;e46d1687d9b13615140f1b18b85d3462da1a4742", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1702228047}}]}')
[1702228048853]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f94f9845bc0> ret: None
[1702228049873] [WARN] HUB  Disconecting from broker
[1702228049873] [WARN] MQTT  Reconnecting in 1s

Suite stderr:

2023-12-10 17:07:28,860 - TEST - INFO - OP take: 1006.982 ms
2023-12-10 17:07:28,866 - TEST - INFO - Connected with result code: 0
2023-12-10 17:07:28,873 - TEST - INFO - OP take: 10.149 ms
2023-12-10 17:07:29,884 - TEST - INFO - OP take: 10.13 ms
2023-12-10 17:07:29,885 - TEST - WARNING - Disconecting from broker
2023-12-10 17:07:29,886 - TEST - WARNING - Disconecting from broker
2023-12-10 17:07:29,888 - TEST - INFO - Connected with result code: 0