Test Report : TEST-last_will_test-20231118124708.xml

  • last_will_test

Test Suite: last_will_test-20231118124708

Results

Duration3.346 sec
Tests1
Failures0

Tests

last_will_test

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

Suite stdout:

[1700311628681] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1700311628681] [INFO] FW-UPD  Initialized
[1700311628681]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7faf1cf479c0> (<uclient.hub.HUB object at 0x7faf1ce29bd0>,)
[1700311628681]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7faf1cf479c0> ret: None
[1700311628681]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7faf1cf46340> ('<48:3f:da:55:07:5b/status', '-1')
[1700311628681]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7faf1cf46340> ret: None
[1700311628681]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7faf1cf460c0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7faf1ce29bd0>>,)
[1700311628681]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7faf1cf460c0> ret: None
[1700311628681]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7faf1cf46200> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7faf1ce29bd0>>,)
[1700311628681]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7faf1cf46200> ret: None
[1700311628681]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7faf1cf454e0> ('x.ks.ua', 1883)
[1700311629685] [INFO] HUB  Connected
[1700311629685]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7faf1cf45d00> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf1ce29bd0>>)
[1700311629728]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7faf1cf45d00> ret: None
[1700311629728]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7faf1cf45d00> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf1ce29bd0>>)
[1700311629772]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7faf1cf45d00> ret: None
[1700311629772] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1700311629772]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7faf1cf45d00> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf1ce29bd0>>)
[1700311629816]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7faf1cf45d00> ret: None
[1700311629816] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1700311629816]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7faf1cf45d00> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf1ce29bd0>>)
[1700311629860]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7faf1cf45d00> ret: None
[1700311629860] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1700311629860]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7faf1cf45d00> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf1ce29bd0>>)
[1700311629904]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7faf1cf45d00> ret: None
[1700311629904] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1700311629904]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7faf1cf45d00> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf1ce29bd0>>)
[1700311629948]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7faf1cf45d00> ret: None
[1700311629948] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1700311629948]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7faf1cf45d00> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf1ce29bd0>>)
[1700311629992]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7faf1cf45d00> ret: None
[1700311629992]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7faf1cf454e0> ret: None
[1700311629993]  [DBG] HUB  Step, state: 0 (next: 1700311630993)
[1700311629993] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1700311629993]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7faf1cf45bc0> ('/reg', '48:3f:da:55:07:5b')
[1700311630037]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7faf1cf45bc0> ret: None
[1700311630080] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1700311630038 }
[1700311630080] [INFO] HUB  Registration finish, time: 1700311630038
[1700311630080]  [DBG] FW-UPD  enter <function device_base.register at 0x7faf1cf47ec0> (1700311630,)
[1700311630080] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1700311630
[1700311630080] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1700311630080]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7faf1cf45d00> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7faf1ce29bd0>>)
[1700311630124]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7faf1cf45d00> ret: None
[1700311630124]  [DBG] FW-UPD  exit <function device_base.register at 0x7faf1cf47ec0> ret: None
[1700311630993]  [DBG] HUB  Step, state: 1 (next: 1700311631993)
[1700311630993]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7faf1cd3c7c0> ()
[1700311630993]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7faf1cd3c7c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1700311630}}
[1700311630993] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231118;master;08d7b27b385d4025b813ff924b091926c599eabf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700311630}}]} }
[1700311630993]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7faf1cf45bc0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231118;master;08d7b27b385d4025b813ff924b091926c599eabf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700311630}}]}')
[1700311630993]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7faf1cf45bc0> ret: None
[1700311632014] [WARN] HUB  Disconecting from broker
[1700311632014] [WARN] MQTT  Reconnecting in 1s

Suite stderr:

2023-11-18 12:47:11,001 - TEST - INFO - OP take: 1007.497 ms
2023-11-18 12:47:11,010 - TEST - INFO - Connected with result code: 0
2023-11-18 12:47:11,014 - TEST - INFO - OP take: 10.116 ms
2023-11-18 12:47:12,025 - TEST - INFO - OP take: 10.1 ms
2023-11-18 12:47:12,026 - TEST - WARNING - Disconecting from broker
2023-11-18 12:47:12,026 - TEST - WARNING - Disconecting from broker
2023-11-18 12:47:12,033 - TEST - INFO - Connected with result code: 0