Test Report : TEST-last_will_test-20231119213449.xml

  • last_will_test

Test Suite: last_will_test-20231119213449

Results

Duration3.342 sec
Tests1
Failures0

Tests

last_will_test

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

Suite stdout:

[1700429689167] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1700429689167] [INFO] FW-UPD  Initialized
[1700429689167]  [DBG] FW-UPD  enter <function device_base.set_hub at 0x7fc26f7579c0> (<uclient.hub.HUB object at 0x7fc26f3585d0>,)
[1700429689167]  [DBG] FW-UPD  exit <function device_base.set_hub at 0x7fc26f7579c0> ret: None
[1700429689167]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fc26f756340> ('<48:3f:da:55:07:5b/status', '-1')
[1700429689167]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fc26f756340> ret: None
[1700429689167]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fc26f7560c0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fc26f3585d0>>,)
[1700429689167]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fc26f7560c0> ret: None
[1700429689167]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fc26f756200> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fc26f3585d0>>,)
[1700429689167]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fc26f756200> ret: None
[1700429689167]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fc26f7554e0> ('x.ks.ua', 1883)
[1700429690170] [INFO] HUB  Connected
[1700429690170]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc26f755d00> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc26f3585d0>>)
[1700429690212]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc26f755d00> ret: None
[1700429690213]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc26f755d00> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc26f3585d0>>)
[1700429690256]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc26f755d00> ret: None
[1700429690256] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1700429690256]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc26f755d00> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc26f3585d0>>)
[1700429690300]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc26f755d00> ret: None
[1700429690300] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1700429690300]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc26f755d00> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc26f3585d0>>)
[1700429690344]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc26f755d00> ret: None
[1700429690344] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1700429690344]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc26f755d00> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc26f3585d0>>)
[1700429690388]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc26f755d00> ret: None
[1700429690388] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1700429690389]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc26f755d00> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc26f3585d0>>)
[1700429690432]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc26f755d00> ret: None
[1700429690432] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1700429690432]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc26f755d00> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc26f3585d0>>)
[1700429690476]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc26f755d00> ret: None
[1700429690476]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fc26f7554e0> ret: None
[1700429690477]  [DBG] HUB  Step, state: 0 (next: 1700429691477)
[1700429690477] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1700429690477]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fc26f755bc0> ('/reg', '48:3f:da:55:07:5b')
[1700429690520]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fc26f755bc0> ret: None
[1700429690564] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1700429690523 }
[1700429690564] [INFO] HUB  Registration finish, time: 1700429690523
[1700429690564]  [DBG] FW-UPD  enter <function device_base.register at 0x7fc26f757ec0> (1700429690,)
[1700429690564] [INFO] FW-UPD  Device 3996365522 registration on the server @ 1700429690
[1700429690564] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1700429690564]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fc26f755d00> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc26f3585d0>>)
[1700429690609]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fc26f755d00> ret: None
[1700429690609]  [DBG] FW-UPD  exit <function device_base.register at 0x7fc26f757ec0> ret: None
[1700429691477]  [DBG] HUB  Step, state: 1 (next: 1700429692477)
[1700429691477]  [DBG] FW-UPD  enter <function device_base.info_req at 0x7fc26f4e47c0> ()
[1700429691477]  [DBG] FW-UPD  exit <function device_base.info_req at 0x7fc26f4e47c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1700429690}}
[1700429691477] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700429690}}]} }
[1700429691477]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fc26f755bc0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231119;master;c5493d6a3d66a18e791cea35edb8dfef668730bf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700429690}}]}')
[1700429691477]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fc26f755bc0> ret: None
[1700429692496] [WARN] HUB  Disconecting from broker
[1700429692496] [WARN] MQTT  Reconnecting in 1s

Suite stderr:

2023-11-19 21:34:51,482 - TEST - INFO - OP take: 1005.341 ms
2023-11-19 21:34:51,490 - TEST - INFO - Connected with result code: 0
2023-11-19 21:34:51,495 - TEST - INFO - OP take: 10.098 ms
2023-11-19 21:34:52,507 - TEST - INFO - OP take: 10.168 ms
2023-11-19 21:34:52,508 - TEST - WARNING - Disconecting from broker