Test Report : TEST-client_registration_test-20240331122221.xml
Test Suite: client_registration_test-20240331122221
Results
| Duration | 3.344 sec |
| Tests | 1 |
| Failures | 0 |
Tests
client_registration_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.344 sec |
| Failed | None |
None
Suite stdout:
[1711887741664] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1711887741665] [INFO] FW-UPD Initialized
[1711887741665] [DBG] FW-UPD enter <function device_base.set_hub at 0x7fa09d978cc0> (<uclient.hub.HUB object at 0x7fa09d7d60d0>,)
[1711887741665] [DBG] FW-UPD exit <function device_base.set_hub at 0x7fa09d978cc0> ret: None
[1711887741665] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7fa09db674c0> ('<48:3f:da:55:07:5b/status', '-1')
[1711887741665] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7fa09db674c0> ret: None
[1711887741665] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7fa09db67240> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fa09d7d60d0>>,)
[1711887741665] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7fa09db67240> ret: None
[1711887741665] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7fa09db67380> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fa09d7d60d0>>,)
[1711887741665] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7fa09db67380> ret: None
[1711887741665] [WARN] HUB Try to connect without uri-schema
[1711887741665] [DBG] MQTT enter <function mqtt_transport.connect at 0x7fa09db66c00> ('x.ks.ua',)
[1711887742672] [INFO] HUB Connected
[1711887742673] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fa09db66e80> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fa09d7d60d0>>)
[1711887742721] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fa09db66e80> ret: None
[1711887742721] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fa09db66e80> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fa09d7d60d0>>)
[1711887742762] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fa09db66e80> ret: None
[1711887742762] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1711887742762] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fa09db66e80> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fa09d7d60d0>>)
[1711887742806] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fa09db66e80> ret: None
[1711887742806] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1711887742806] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fa09db66e80> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fa09d7d60d0>>)
[1711887742850] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fa09db66e80> ret: None
[1711887742850] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1711887742850] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fa09db66e80> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fa09d7d60d0>>)
[1711887742894] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fa09db66e80> ret: None
[1711887742894] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1711887742894] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fa09db66e80> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fa09d7d60d0>>)
[1711887742938] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fa09db66e80> ret: None
[1711887742938] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1711887742938] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fa09db66e80> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fa09d7d60d0>>)
[1711887742982] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fa09db66e80> ret: None
[1711887742982] [DBG] MQTT exit <function mqtt_transport.connect at 0x7fa09db66c00> ret: None
[1711887742983] [DBG] HUB Step, state: 0 (next: 1711887743983)
[1711887742983] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1711887742983] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fa09db66d40> ('/reg', '48:3f:da:55:07:5b')
[1711887743026] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fa09db66d40> ret: None
[1711887743070] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1711887743033 }
[1711887743070] [INFO] HUB Registration finish, time: 1711887743033
[1711887743070] [DBG] FW-UPD enter <function device_base.register at 0x7fa09d9791c0> (1711887743,)
[1711887743070] [INFO] FW-UPD Device 3996365522 registration on the server @ 1711887743
[1711887743070] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1711887743070] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fa09db66e80> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fa09d7d60d0>>)
[1711887743114] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fa09db66e80> ret: None
[1711887743114] [DBG] FW-UPD exit <function device_base.register at 0x7fa09d9791c0> ret: None
[1711887743983] [DBG] HUB Step, state: 1 (next: 1711887744983)
[1711887743983] [DBG] FW-UPD enter <function device_base.info_req at 0x7fa09d979a80> ()
[1711887743983] [DBG] FW-UPD exit <function device_base.info_req at 0x7fa09d979a80> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1711887743}}
[1711887743983] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240331;master;5183e637011d54c26955b17b85024fc74d20124c", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711887743}}]} }
[1711887743983] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fa09db66d40> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240331;master;5183e637011d54c26955b17b85024fc74d20124c", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711887743}}]}')
[1711887743983] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fa09db66d40> ret: None
[1711887745004] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7fa09db67100> ()
[1711887745005] [WARN] HUB Disconecting from broker
[1711887745005] [WARN] MQTT Reconnecting in 1s
[1711887745007] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7fa09db67100> ret: None
Suite stderr:
2024-03-31 12:22:23,989 - TEST - INFO - OP take: 1006.357 ms
2024-03-31 12:22:23,999 - TEST - INFO - Connected with result code: 0
2024-03-31 12:22:24,003 - TEST - INFO - OP take: 10.097 ms
2024-03-31 12:22:25,007 - TEST - WARNING - Disconecting from broker
2024-03-31 12:22:25,008 - TEST - WARNING - Disconecting from broker