Test Report : TEST-user_list_test-20231118124003.xml
Test Suite: user_list_test-20231118124003
Results
| Duration | 3.442 sec |
| Tests | 1 |
| Failures | 0 |
Tests
user_list_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.442 sec |
| Failed | None |
None
Suite stdout:
[1700311203756] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1700311203756] [DBG] DEV-3996365522 enter <function device_base.set_hub at 0x7fc419acfba0> (<uclient.hub.HUB object at 0x7fc418e0f7d0>,)
[1700311203756] [DBG] DEV-3996365522 exit <function device_base.set_hub at 0x7fc419acfba0> ret: None
[1700311203756] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7fc418fa22a0> ('<48:3f:da:55:07:5b/status', '-1')
[1700311203756] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7fc418fa22a0> ret: None
[1700311203756] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7fc418fa2520> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fc418e0f7d0>>,)
[1700311203756] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7fc418fa2520> ret: None
[1700311203757] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7fc418fa23e0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fc418e0f7d0>>,)
[1700311203757] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7fc418fa23e0> ret: None
[1700311203757] [DBG] MQTT enter <function mqtt_transport.connect at 0x7fc418fa2b60> ('x.ks.ua', 1883)
[1700311204761] [INFO] HUB Connected
[1700311204761] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc418fa28e0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc418e0f7d0>>)
[1700311204804] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc418fa28e0> ret: None
[1700311204804] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc418fa28e0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc418e0f7d0>>)
[1700311204848] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc418fa28e0> ret: None
[1700311204848] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1700311204848] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc418fa28e0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc418e0f7d0>>)
[1700311204892] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc418fa28e0> ret: None
[1700311204892] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1700311204892] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc418fa28e0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc418e0f7d0>>)
[1700311204936] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc418fa28e0> ret: None
[1700311204936] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1700311204936] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc418fa28e0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc418e0f7d0>>)
[1700311204980] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc418fa28e0> ret: None
[1700311204980] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1700311204980] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc418fa28e0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc418e0f7d0>>)
[1700311205024] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc418fa28e0> ret: None
[1700311205024] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1700311205024] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc418fa28e0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc418e0f7d0>>)
[1700311205068] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc418fa28e0> ret: None
[1700311205068] [DBG] MQTT exit <function mqtt_transport.connect at 0x7fc418fa2b60> ret: None
[1700311205069] [DBG] HUB Step, state: 0 (next: 1700311206069)
[1700311205069] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1700311205069] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fc418fa2a20> ('/reg', '48:3f:da:55:07:5b')
[1700311205114] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fc418fa2a20> ret: None
[1700311205156] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1700311205115 }
[1700311205156] [INFO] HUB Registration finish, time: 1700311205115
[1700311205156] [DBG] DEV-3996365522 enter <function device_base.register at 0x7fc419af00e0> (1700311205,)
[1700311205156] [INFO] DEV-3996365522 Device 3996365522 registration on the server @ 1700311205
[1700311205156] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1700311205156] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7fc418fa28e0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fc418e0f7d0>>)
[1700311205201] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7fc418fa28e0> ret: None
[1700311205201] [DBG] DEV-3996365522 exit <function device_base.register at 0x7fc419af00e0> ret: None
[1700311206069] [DBG] HUB Step, state: 1 (next: 1700311207069)
[1700311206069] [DBG] DEV-3996365522 enter <function device_base.info_req at 0x7fc419af09a0> ()
[1700311206069] [DBG] DEV-3996365522 exit <function device_base.info_req at 0x7fc419af09a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1700311205}}
[1700311206069] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R231118;master;08d7b27b385d4025b813ff924b091926c599eabf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700311205}}]} }
[1700311206069] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fc418fa2a20> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R231118;master;08d7b27b385d4025b813ff924b091926c599eabf", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1700311205}}]}')
[1700311206069] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fc418fa2a20> ret: None
[1700311206090] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1700311206091] [INFO] DEV-3996365522 User created. User count: 1
[1700311206094] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1700311206094] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fc418fa2a20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1700311206094] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fc418fa2a20> ret: None
[1700311207143] [INFO] HUB Message: {topic: >user/dev, value: yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY= }
[1700311207143] [DBG] MQTT enter <function mqtt_transport.publish at 0x7fc418fa2a20> ('<user/dev', '48:3f:da:55:07:5b/3996365522')
[1700311207144] [DBG] MQTT exit <function mqtt_transport.publish at 0x7fc418fa2a20> ret: None
[1700311207186] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7fc418fa2660> ()
[1700311207186] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7fc418fa2660> ret: None
[1700311207187] [WARN] HUB Disconecting from broker
Suite stderr:
2023-11-18 12:40:06,074 - TEST - INFO - OP take: 1005.172 ms
2023-11-18 12:40:06,084 - TEST - INFO - Connected with result code: 0
2023-11-18 12:40:06,088 - TEST - INFO - OP take: 10.109 ms
2023-11-18 12:40:06,088 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2023-11-18 12:40:06,089 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2023-11-18 12:40:06,140 - TEST - INFO - OP take: 50.777 ms
2023-11-18 12:40:06,141 - TEST - INFO - User created: "OK"
2023-11-18 12:40:07,142 - TEST - INFO - User-ID hash: yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY=
2023-11-18 12:40:07,185 - TEST - INFO - OP take: 41.316 ms
2023-11-18 12:40:07,186 - TEST - INFO - ===> Found device: 48:3f:da:55:07:5b/3996365522
2023-11-18 12:40:07,192 - TEST - WARNING - Disconecting from broker