Test Report : TEST-last_will_test-20240407051019.xml
Test Suite: last_will_test-20240407051019
Results
| Duration | 3.344 sec |
| Tests | 1 |
| Failures | 0 |
Tests
last_will_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.344 sec |
| Failed | None |
None
Suite stdout:
[1712466619454] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1712466619454] [INFO] FW-UPD Initialized
[1712466619454] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f778bf43ce0> (<uclient.hub.HUB object at 0x7f778bb4c5d0>,)
[1712466619454] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f778bf43ce0> ret: None
[1712466619454] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f778bf42660> ('<48:3f:da:55:07:5b/status', '-1')
[1712466619454] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f778bf42660> ret: None
[1712466619454] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f778bf423e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f778bb4c5d0>>,)
[1712466619454] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f778bf423e0> ret: None
[1712466619454] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f778bf42520> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f778bb4c5d0>>,)
[1712466619455] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f778bf42520> ret: None
[1712466619455] [WARN] HUB Try to connect without uri-schema
[1712466619455] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f778bf41da0> ('x.ks.ua',)
[1712466620458] [INFO] HUB Connected
[1712466620458] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f778bf42020> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f778bb4c5d0>>)
[1712466620502] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f778bf42020> ret: None
[1712466620502] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f778bf42020> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f778bb4c5d0>>)
[1712466620546] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f778bf42020> ret: None
[1712466620546] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1712466620546] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f778bf42020> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f778bb4c5d0>>)
[1712466620590] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f778bf42020> ret: None
[1712466620590] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1712466620590] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f778bf42020> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f778bb4c5d0>>)
[1712466620634] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f778bf42020> ret: None
[1712466620634] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1712466620634] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f778bf42020> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f778bb4c5d0>>)
[1712466620678] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f778bf42020> ret: None
[1712466620678] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1712466620678] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f778bf42020> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f778bb4c5d0>>)
[1712466620722] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f778bf42020> ret: None
[1712466620722] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1712466620722] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f778bf42020> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f778bb4c5d0>>)
[1712466620766] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f778bf42020> ret: None
[1712466620766] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f778bf41da0> ret: None
[1712466620767] [DBG] HUB Step, state: 0 (next: 1712466621767)
[1712466620767] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1712466620767] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f778bf41ee0> ('/reg', '48:3f:da:55:07:5b')
[1712466620810] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f778bf41ee0> ret: None
[1712466620854] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1712466620814 }
[1712466620854] [INFO] HUB Registration finish, time: 1712466620814
[1712466620854] [DBG] FW-UPD enter <function device_base.register at 0x7f778bcd0220> (1712466620,)
[1712466620854] [INFO] FW-UPD Device 3996365522 registration on the server @ 1712466620
[1712466620854] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1712466620854] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f778bf42020> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f778bb4c5d0>>)
[1712466620898] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f778bf42020> ret: None
[1712466620898] [DBG] FW-UPD exit <function device_base.register at 0x7f778bcd0220> ret: None
[1712466621767] [DBG] HUB Step, state: 1 (next: 1712466622767)
[1712466621767] [DBG] FW-UPD enter <function device_base.info_req at 0x7f778bcd0ae0> ()
[1712466621767] [DBG] FW-UPD exit <function device_base.info_req at 0x7f778bcd0ae0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1712466620}}
[1712466621767] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240407;master;fc74d869358fa60643af852fcb85137b7a1f5f15", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1712466620}}]} }
[1712466621767] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f778bf41ee0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240407;master;fc74d869358fa60643af852fcb85137b7a1f5f15", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1712466620}}]}')
[1712466621767] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f778bf41ee0> ret: None
[1712466622786] [WARN] HUB Disconecting from broker
[1712466622786] [WARN] MQTT Reconnecting in 1s
Suite stderr:
2024-04-07 05:10:21,772 - TEST - INFO - OP take: 1004.776 ms
2024-04-07 05:10:21,782 - TEST - INFO - Connected with result code: 0
2024-04-07 05:10:21,785 - TEST - INFO - OP take: 10.116 ms
2024-04-07 05:10:22,796 - TEST - INFO - OP take: 10.127 ms
2024-04-07 05:10:22,797 - TEST - WARNING - Disconecting from broker