Test Report : TEST-client_registration_test-20231108214848.xml
Test Suite: client_registration_test-20231108214848
Results
| Duration | 3.551 sec |
| Tests | 1 |
| Failures | 0 |
Tests
client_registration_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.551 sec |
| Failed | None |
None
Suite stdout:
[1699480128989] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1699480128990] [INFO] FW-UPD Initialized
[1699480128990] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f4da59dc860> (<uclient.hub.HUB object at 0x7f4da63c7c50>,)
[1699480128990] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f4da59dc860> ret: None
[1699480128990] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f4da5be7100> ('<48:3f:da:55:07:5b/status', '-1')
[1699480128990] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f4da5be7100> ret: None
[1699480128990] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f4da5be6e80> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f4da63c7c50>>,)
[1699480128990] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f4da5be6e80> ret: None
[1699480128990] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f4da5be6fc0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f4da63c7c50>>,)
[1699480128990] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f4da5be6fc0> ret: None
[1699480128990] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f4da5be5b20> ('x.ks.ua', 1883)
[1699480130119] [INFO] HUB Connected
[1699480130119] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4da63c7c50>>)
[1699480130161] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ret: None
[1699480130161] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4da63c7c50>>)
[1699480130204] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ret: None
[1699480130204] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1699480130204] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4da63c7c50>>)
[1699480130248] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ret: None
[1699480130248] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1699480130248] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4da63c7c50>>)
[1699480130292] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ret: None
[1699480130293] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1699480130293] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4da63c7c50>>)
[1699480130336] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ret: None
[1699480130336] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1699480130337] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4da63c7c50>>)
[1699480130380] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ret: None
[1699480130380] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1699480130380] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4da63c7c50>>)
[1699480130424] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ret: None
[1699480130424] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f4da5be5b20> ret: None
[1699480130425] [DBG] HUB Step, state: 0 (next: 1699480131425)
[1699480130425] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1699480130425] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f4da5be6980> ('/reg', '48:3f:da:55:07:5b')
[1699480130470] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f4da5be6980> ret: None
[1699480130512] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1699480130476 }
[1699480130512] [INFO] HUB Registration finish, time: 1699480130476
[1699480130512] [DBG] FW-UPD enter <function device_base.register at 0x7f4da59dcd60> (1699480130,)
[1699480130512] [INFO] FW-UPD Device 3996365522 registration on the server @ 1699480130
[1699480130512] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1699480130512] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f4da63c7c50>>)
[1699480130556] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f4da5be6ac0> ret: None
[1699480130556] [DBG] FW-UPD exit <function device_base.register at 0x7f4da59dcd60> ret: None
[1699480131425] [DBG] HUB Step, state: 1 (next: 1699480132425)
[1699480131425] [DBG] FW-UPD enter <function device_base.info_req at 0x7f4da59dd620> ()
[1699480131425] [DBG] FW-UPD exit <function device_base.info_req at 0x7f4da59dd620> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1699480130}}
[1699480131425] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231102;master;e9b306c7e765ddf633df5089542fbb0d0e965da4", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699480130}}]} }
[1699480131425] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f4da5be6980> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231102;master;e9b306c7e765ddf633df5089542fbb0d0e965da4", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1699480130}}]}')
[1699480131425] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f4da5be6980> ret: None
[1699480132536] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f4da5be6d40> ()
[1699480132537] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f4da5be6d40> ret: None
Suite stderr:
2023-11-08 21:48:51,430 - TEST - INFO - OP take: 1005.096 ms
2023-11-08 21:48:51,531 - TEST - INFO - Connected with result code: 0
2023-11-08 21:48:51,535 - TEST - INFO - OP take: 102.56 ms
2023-11-08 21:48:52,539 - TEST - WARNING - Disconecting from broker