Test Report : TEST-client_registration_test-20240210232447.xml
Test Suite: client_registration_test-20240210232447
Results
| Duration | 3.436 sec |
| Tests | 1 |
| Failures | 0 |
Tests
client_registration_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.436 sec |
| Failed | None |
None
Suite stdout:
[1707607487305] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1707607487306] [INFO] FW-UPD Initialized
[1707607487306] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f8fe3824cc0> (<uclient.hub.HUB object at 0x7f8fe368ef90>,)
[1707607487306] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f8fe3824cc0> ret: None
[1707607487306] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f8fe3a134c0> ('<48:3f:da:55:07:5b/status', '-1')
[1707607487306] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f8fe3a134c0> ret: None
[1707607487306] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f8fe3a13240> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f8fe368ef90>>,)
[1707607487306] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f8fe3a13240> ret: None
[1707607487306] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f8fe3a13380> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f8fe368ef90>>,)
[1707607487306] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f8fe3a13380> ret: None
[1707607487306] [WARN] HUB Try to connect without uri-schema
[1707607487306] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f8fe3a12c00> ('x.ks.ua',)
[1707607488360] [INFO] HUB Connected
[1707607488360] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8fe368ef90>>)
[1707607488404] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ret: None
[1707607488404] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8fe368ef90>>)
[1707607488447] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ret: None
[1707607488447] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1707607488447] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8fe368ef90>>)
[1707607488491] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ret: None
[1707607488491] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1707607488491] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8fe368ef90>>)
[1707607488536] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ret: None
[1707607488536] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1707607488536] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8fe368ef90>>)
[1707607488579] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ret: None
[1707607488579] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1707607488579] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8fe368ef90>>)
[1707607488623] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ret: None
[1707607488623] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1707607488623] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8fe368ef90>>)
[1707607488667] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ret: None
[1707607488667] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f8fe3a12c00> ret: None
[1707607488668] [DBG] HUB Step, state: 0 (next: 1707607489668)
[1707607488668] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1707607488668] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f8fe3a12d40> ('/reg', '48:3f:da:55:07:5b')
[1707607488714] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f8fe3a12d40> ret: None
[1707607488759] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1707607488717 }
[1707607488759] [INFO] HUB Registration finish, time: 1707607488717
[1707607488759] [DBG] FW-UPD enter <function device_base.register at 0x7f8fe38251c0> (1707607488,)
[1707607488759] [INFO] FW-UPD Device 3996365522 registration on the server @ 1707607488
[1707607488759] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1707607488759] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f8fe368ef90>>)
[1707607488804] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f8fe3a12e80> ret: None
[1707607488804] [DBG] FW-UPD exit <function device_base.register at 0x7f8fe38251c0> ret: None
[1707607489668] [DBG] HUB Step, state: 1 (next: 1707607490668)
[1707607489668] [DBG] FW-UPD enter <function device_base.info_req at 0x7f8fe3825a80> ()
[1707607489668] [DBG] FW-UPD exit <function device_base.info_req at 0x7f8fe3825a80> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1707607488}}
[1707607489668] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240201;master;e89029bf60793daed45c8101ee145a73cc811f6e", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707607488}}]} }
[1707607489668] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f8fe3a12d40> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240201;master;e89029bf60793daed45c8101ee145a73cc811f6e", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707607488}}]}')
[1707607489668] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f8fe3a12d40> ret: None
[1707607490726] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f8fe3a13100> ()
[1707607490727] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f8fe3a13100> ret: None
[1707607490728] [WARN] HUB Disconecting from broker
Suite stderr:
2024-02-10 23:24:49,678 - TEST - INFO - OP take: 1010.593 ms
2024-02-10 23:24:49,724 - TEST - INFO - Connected with result code: 0
2024-02-10 23:24:49,726 - TEST - INFO - OP take: 44.647 ms
2024-02-10 23:24:50,733 - TEST - WARNING - Disconecting from broker