Test Report : TEST-client_registration_test-20240427173536.xml
Test Suite: client_registration_test-20240427173536
Results
| Duration | 3.525 sec |
| Tests | 1 |
| Failures | 0 |
Tests
client_registration_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.525 sec |
| Failed | None |
None
Suite stdout:
[1714239336108] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1714239336108] [INFO] FW-UPD Initialized
[1714239336108] [DBG] FW-UPD enter <function device_base.set_hub at 0x7f66d3f68cc0> (<uclient.hub.HUB object at 0x7f66d3df2050>,)
[1714239336108] [DBG] FW-UPD exit <function device_base.set_hub at 0x7f66d3f68cc0> ret: None
[1714239336108] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f66d41634c0> ('<48:3f:da:55:07:5b/status', '-1')
[1714239336108] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f66d41634c0> ret: None
[1714239336108] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f66d4163240> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f66d3df2050>>,)
[1714239336108] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f66d4163240> ret: None
[1714239336108] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f66d4163380> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f66d3df2050>>,)
[1714239336108] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f66d4163380> ret: None
[1714239336108] [WARN] HUB Try to connect without uri-schema
[1714239336108] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f66d4162c00> ('x.ks.ua',)
[1714239337269] [INFO] HUB Connected
[1714239337269] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f66d4162e80> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f66d3df2050>>)
[1714239337310] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f66d4162e80> ret: None
[1714239337310] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f66d4162e80> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f66d3df2050>>)
[1714239337354] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f66d4162e80> ret: None
[1714239337354] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1714239337354] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f66d4162e80> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f66d3df2050>>)
[1714239337398] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f66d4162e80> ret: None
[1714239337398] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1714239337398] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f66d4162e80> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f66d3df2050>>)
[1714239337442] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f66d4162e80> ret: None
[1714239337442] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1714239337442] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f66d4162e80> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f66d3df2050>>)
[1714239337486] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f66d4162e80> ret: None
[1714239337486] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1714239337486] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f66d4162e80> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f66d3df2050>>)
[1714239337530] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f66d4162e80> ret: None
[1714239337530] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1714239337530] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f66d4162e80> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f66d3df2050>>)
[1714239337574] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f66d4162e80> ret: None
[1714239337574] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f66d4162c00> ret: None
[1714239337575] [DBG] HUB Step, state: 0 (next: 1714239338575)
[1714239337575] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1714239337575] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f66d4162d40> ('/reg', '48:3f:da:55:07:5b')
[1714239337618] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f66d4162d40> ret: None
[1714239337662] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1714239337627 }
[1714239337662] [INFO] HUB Registration finish, time: 1714239337627
[1714239337662] [DBG] FW-UPD enter <function device_base.register at 0x7f66d3f691c0> (1714239337,)
[1714239337662] [INFO] FW-UPD Device 3996365522 registration on the server @ 1714239337
[1714239337662] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1714239337662] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f66d4162e80> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f66d3df2050>>)
[1714239337706] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f66d4162e80> ret: None
[1714239337706] [DBG] FW-UPD exit <function device_base.register at 0x7f66d3f691c0> ret: None
[1714239338575] [DBG] HUB Step, state: 1 (next: 1714239339575)
[1714239338575] [DBG] FW-UPD enter <function device_base.info_req at 0x7f66d3f69a80> ()
[1714239338575] [DBG] FW-UPD exit <function device_base.info_req at 0x7f66d3f69a80> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714239337}}
[1714239338575] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d98ab4d8ece41a102d19b961364f22d5e93d21ca", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714239337}}]} }
[1714239338575] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f66d4162d40> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d98ab4d8ece41a102d19b961364f22d5e93d21ca", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714239337}}]}')
[1714239338575] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f66d4162d40> ret: None
[1714239339595] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f66d4163100> ()
[1714239339598] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f66d4163100> ret: None
[1714239339598] [WARN] HUB Disconecting from broker
Suite stderr:
2024-04-27 17:35:38,580 - TEST - INFO - OP take: 1004.786 ms
2024-04-27 17:35:38,590 - TEST - INFO - Connected with result code: 0
2024-04-27 17:35:38,594 - TEST - INFO - OP take: 10.977 ms
2024-04-27 17:35:39,610 - TEST - WARNING - Disconecting from broker
2024-04-27 17:35:39,627 - TEST - WARNING - Disconecting from broker