Test Report : TEST-last_will_test-20240330135827.xml

  • last_will_test

Test Suite: last_will_test-20240330135827

Results

Duration3.351 sec
Tests1
Failures0

Tests

last_will_test

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

Suite stdout:

[1711807107377] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1711807107377] [INFO] FW-UPD  Initialized
[1711807107377]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fd348017ce0> (<uclient.hub.HUB object at 0x7fd347c887d0>,)
[1711807107377]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fd348017ce0> ret: None
[1711807107377]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fd348016660> ('<48:3f:da:55:07:5b/status', '-1')
[1711807107377]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fd348016660> ret: None
[1711807107377]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fd3480163e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fd347c887d0>>,)
[1711807107377]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fd3480163e0> ret: None
[1711807107377]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fd348016520> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fd347c887d0>>,)
[1711807107377]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fd348016520> ret: None
[1711807107377] [WARN] HUB  Try to connect without uri-schema
[1711807107377]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fd348015da0> ('x.ks.ua',)
[1711807108381] [INFO] HUB  Connected
[1711807108381]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fd348016020> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd347c887d0>>)
[1711807108422]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fd348016020> ret: None
[1711807108422]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fd348016020> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd347c887d0>>)
[1711807108466]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fd348016020> ret: None
[1711807108466] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1711807108466]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fd348016020> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd347c887d0>>)
[1711807108510]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fd348016020> ret: None
[1711807108510] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1711807108510]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fd348016020> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd347c887d0>>)
[1711807108554]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fd348016020> ret: None
[1711807108554] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1711807108554]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fd348016020> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd347c887d0>>)
[1711807108598]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fd348016020> ret: None
[1711807108598] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1711807108598]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fd348016020> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd347c887d0>>)
[1711807108642]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fd348016020> ret: None
[1711807108642] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1711807108642]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fd348016020> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd347c887d0>>)
[1711807108686]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fd348016020> ret: None
[1711807108686]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fd348015da0> ret: None
[1711807108687]  [DBG] HUB  Step, state: 0 (next: 1711807109687)
[1711807108687] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1711807108687]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fd348015ee0> ('/reg', '48:3f:da:55:07:5b')
[1711807108731]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fd348015ee0> ret: None
[1711807108774] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1711807108734 }
[1711807108774] [INFO] HUB  Registration finish, time: 1711807108734
[1711807108774]  [DBG] FW-UPD  enter <function device_base.register at 0x7fd347e0c220> (1711807108,)
[1711807108774] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1711807108
[1711807108774] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1711807108774]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fd348016020> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fd347c887d0>>)
[1711807108818]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fd348016020> ret: None
[1711807108818]  [DBG] FW-UPD  exit <function device_base.register at 0x7fd347e0c220> ret: None
[1711807109687]  [DBG] HUB  Step, state: 1 (next: 1711807110687)
[1711807109687]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fd347e0cae0> ()
[1711807109687]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fd347e0cae0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1711807108}}
[1711807109687] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240330;master;d9604b086c82824a652e822a8dd1b981e006f9bd", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711807108}}]} }
[1711807109687]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fd348015ee0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240330;master;d9604b086c82824a652e822a8dd1b981e006f9bd", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711807108}}]}')
[1711807109687]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fd348015ee0> ret: None
[1711807110714] [WARN] HUB  Disconecting from broker
[1711807110714] [WARN] MQTT  Reconnecting in 1s

Suite stderr:

2024-03-30 13:58:29,698 - TEST - INFO - OP take: 1010.252 ms
2024-03-30 13:58:29,710 - TEST - INFO - Connected with result code: 0
2024-03-30 13:58:29,713 - TEST - INFO - OP take: 10.207 ms
2024-03-30 13:58:30,725 - TEST - INFO - OP take: 10.137 ms
2024-03-30 13:58:30,726 - TEST - WARNING - Disconecting from broker
2024-03-30 13:58:30,727 - TEST - WARNING - Disconecting from broker
2024-03-30 13:58:30,733 - TEST - INFO - Connected with result code: 0