Test Report : TEST-last_will_test-20240422020428.xml

  • last_will_test

Test Suite: last_will_test-20240422020428

Results

Duration3.344 sec
Tests1
Failures0

Tests

last_will_test

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

Suite stdout:

[1713751468221] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1713751468221] [INFO] FW-UPD  Initialized
[1713751468221]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7f063765bce0> (<uclient.hub.HUB object at 0x7f06372cc710>,)
[1713751468221]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7f063765bce0> ret: None
[1713751468221]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f063765a660> ('<48:3f:da:55:07:5b/status', '-1')
[1713751468221]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f063765a660> ret: None
[1713751468221]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f063765a3e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f06372cc710>>,)
[1713751468221]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f063765a3e0> ret: None
[1713751468222]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f063765a520> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f06372cc710>>,)
[1713751468222]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f063765a520> ret: None
[1713751468222] [WARN] HUB  Try to connect without uri-schema
[1713751468222]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f0637659da0> ('x.ks.ua',)
[1713751469225] [INFO] HUB  Connected
[1713751469225]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f063765a020> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f06372cc710>>)
[1713751469266]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f063765a020> ret: None
[1713751469266]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f063765a020> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f06372cc710>>)
[1713751469310]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f063765a020> ret: None
[1713751469310] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1713751469310]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f063765a020> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f06372cc710>>)
[1713751469354]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f063765a020> ret: None
[1713751469354] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1713751469354]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f063765a020> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f06372cc710>>)
[1713751469398]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f063765a020> ret: None
[1713751469398] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1713751469398]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f063765a020> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f06372cc710>>)
[1713751469443]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f063765a020> ret: None
[1713751469443] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1713751469443]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f063765a020> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f06372cc710>>)
[1713751469486]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f063765a020> ret: None
[1713751469486] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1713751469486]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f063765a020> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f06372cc710>>)
[1713751469530]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f063765a020> ret: None
[1713751469530]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f0637659da0> ret: None
[1713751469531]  [DBG] HUB  Step, state: 0 (next: 1713751470531)
[1713751469531] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1713751469531]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f0637659ee0> ('/reg', '48:3f:da:55:07:5b')
[1713751469574]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f0637659ee0> ret: None
[1713751469618] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1713751469584 }
[1713751469618] [INFO] HUB  Registration finish, time: 1713751469584
[1713751469618]  [DBG] FW-UPD  enter <function device_base.register at 0x7f0637450220> (1713751469,)
[1713751469618] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1713751469
[1713751469618] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1713751469618]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f063765a020> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f06372cc710>>)
[1713751469662]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f063765a020> ret: None
[1713751469662]  [DBG] FW-UPD  exit <function device_base.register at 0x7f0637450220> ret: None
[1713751470531]  [DBG] HUB  Step, state: 1 (next: 1713751471531)
[1713751470531]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7f0637450ae0> ()
[1713751470531]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7f0637450ae0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1713751469}}
[1713751470531] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240422;master;1cbe23275f06225250929fe7fe58dd3456c46af0", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713751469}}]} }
[1713751470531]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f0637659ee0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240422;master;1cbe23275f06225250929fe7fe58dd3456c46af0", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1713751469}}]}')
[1713751470531]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f0637659ee0> ret: None
[1713751471552] [WARN] HUB  Disconecting from broker
[1713751471552] [WARN] MQTT  Reconnecting in 1s

Suite stderr:

2024-04-22 02:04:30,537 - TEST - INFO - OP take: 1005.954 ms
2024-04-22 02:04:30,549 - TEST - INFO - Connected with result code: 0
2024-04-22 02:04:30,551 - TEST - INFO - OP take: 10.067 ms
2024-04-22 02:04:31,562 - TEST - INFO - OP take: 10.134 ms
2024-04-22 02:04:31,563 - TEST - WARNING - Disconecting from broker
2024-04-22 02:04:31,564 - TEST - WARNING - Disconecting from broker
2024-04-22 02:04:31,569 - TEST - INFO - Connected with result code: 0