Test Report : TEST-user_list_test-20240430184630.xml
Test Suite: user_list_test-20240430184630
Results
| Duration | 3.161 sec |
| Tests | 1 |
| Failures | 0 |
Tests
user_list_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.161 sec |
| Failed | None |
None
Suite stdout:
[1714502790202] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1714502790203] [DBG] DEV-3996365522 enter <function device_base.set_hub at 0x7f7fa36e3ba0> (<uclient.hub.HUB object at 0x7f7fa2c1bfd0>,)
[1714502790203] [DBG] DEV-3996365522 exit <function device_base.set_hub at 0x7f7fa36e3ba0> ret: None
[1714502790203] [DBG] HUB enter <function HUB.register_root_cb at 0x7f7fa2bac9a0> ('>user/dev', <bound method user_device.on_user_dev of <uclient.userdev.user_device object at 0x7f7fa2c1bf50>>)
[1714502790203] [DBG] HUB exit <function HUB.register_root_cb at 0x7f7fa2bac9a0> ret: None
[1714502790203] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f7fa2bae0c0> ('<48:3f:da:55:07:5c/status', '-1')
[1714502790203] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f7fa2bae0c0> ret: None
[1714502790203] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f7fa2bae340> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f7fa2c1bfd0>>,)
[1714502790203] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f7fa2bae340> ret: None
[1714502790203] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f7fa2bae200> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f7fa2c1bfd0>>,)
[1714502790203] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f7fa2bae200> ret: None
[1714502790203] [DBG] HUB enter <function HUB.connect at 0x7f7fa2c019e0> ()
[1714502790203] [WARN] HUB Try to connect without uri-schema
[1714502790203] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f7fa2bae980> ('x.ks.ua',)
[1714502791212] [DBG] HUB enter <function HUB.__on_connect at 0x7f7fa2bacfe0> ()
[1714502791212] [INFO] HUB Connected
[1714502791212] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f7fa2bae700> ('>hub', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f7fa2c1bfd0>>)
[1714502791212] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f7fa2bae700> ret: None
[1714502791212] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f7fa2bae700> ('>user/dev', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f7fa2c1bfd0>>)
[1714502791213] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f7fa2bae700> ret: None
[1714502791213] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f7fa2bad8a0> ('time', '/')
[1714502791213] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5c/time }
[1714502791213] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f7fa2bae700> ('/48:3f:da:55:07:5c/time', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f7fa2c1bfd0>>)
[1714502791213] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f7fa2bae700> ret: None
[1714502791213] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f7fa2bad8a0> ret: None
[1714502791213] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f7fa2bad8a0> ('lifetime', '>')
[1714502791213] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/lifetime }
[1714502791213] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f7fa2bae700> ('>48:3f:da:55:07:5c/lifetime', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f7fa2c1bfd0>>)
[1714502791213] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f7fa2bae700> ret: None
[1714502791213] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f7fa2bad8a0> ret: None
[1714502791213] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f7fa2bad8a0> ('error', '>')
[1714502791213] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/error }
[1714502791213] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f7fa2bae700> ('>48:3f:da:55:07:5c/error', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f7fa2c1bfd0>>)
[1714502791213] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f7fa2bae700> ret: None
[1714502791213] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f7fa2bad8a0> ret: None
[1714502791213] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f7fa2bad8a0> ('ping', '>')
[1714502791213] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/ping }
[1714502791213] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f7fa2bae700> ('>48:3f:da:55:07:5c/ping', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f7fa2c1bfd0>>)
[1714502791213] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f7fa2bae700> ret: None
[1714502791213] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f7fa2bad8a0> ret: None
[1714502791213] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f7fa2bad8a0> ('version', '>')
[1714502791213] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/version }
[1714502791213] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f7fa2bae700> ('>48:3f:da:55:07:5c/version', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f7fa2c1bfd0>>)
[1714502791213] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f7fa2bae700> ret: None
[1714502791213] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f7fa2bad8a0> ret: None
[1714502791213] [DBG] HUB exit <function HUB.__on_connect at 0x7f7fa2bacfe0> ret: None
[1714502791213] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f7fa2bae980> ret: None
[1714502791213] [DBG] HUB exit <function HUB.connect at 0x7f7fa2c019e0> ret: None
[1714502791224] [DBG] HUB Step, state: 0 (next: 1714502792224)
[1714502791224] [DBG] HUB enter <function HUB.__send_reg at 0x7f7fa2bad120> ()
[1714502791224] [INFO] HUB Publish reg token: 48:3f:da:55:07:5c
[1714502791224] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f7fa2bae840> ('/reg', '48:3f:da:55:07:5c')
[1714502791224] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f7fa2bae840> ret: None
[1714502791224] [DBG] HUB exit <function HUB.__send_reg at 0x7f7fa2bad120> ret: None
[1714502791260] [DBG] HUB enter <function HUB.__on_message at 0x7f7fa2bacc20> ('/48:3f:da:55:07:5c/time', b'1714502791260')
[1714502791260] [INFO] HUB Message: {topic: /48:3f:da:55:07:5c/time, value: 1714502791260 }
[1714502791261] [DBG] HUB enter <function HUB.__time_hnd at 0x7f7fa2bad760> ('1714502791260',)
[1714502791261] [INFO] HUB Registration finish, time: 1714502791260
[1714502791261] [DBG] DEV-3996365522 enter <function device_base.register at 0x7f7fa37040e0> (1714502791,)
[1714502791261] [INFO] DEV-3996365522 Device 3996365522 registration on the server @ 1714502791
[1714502791261] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f7fa2bad8a0> ('3996365522/#', '>')
[1714502791261] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/3996365522/# }
[1714502791261] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f7fa2bae700> ('>48:3f:da:55:07:5c/3996365522/#', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f7fa2c1bfd0>>)
[1714502791261] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f7fa2bae700> ret: None
[1714502791261] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f7fa2bad8a0> ret: None
[1714502791261] [DBG] DEV-3996365522 exit <function device_base.register at 0x7f7fa37040e0> ret: None
[1714502791261] [DBG] HUB exit <function HUB.__time_hnd at 0x7f7fa2bad760> ret: None
[1714502791261] [DBG] HUB exit <function HUB.__on_message at 0x7f7fa2bacc20> ret: None
[1714502792228] [DBG] HUB Step, state: 1 (next: 1714502793228)
[1714502792228] [DBG] DEV-3996365522 enter <function device_base.info_req at 0x7f7fa37049a0> ()
[1714502792228] [DBG] DEV-3996365522 exit <function device_base.info_req at 0x7f7fa37049a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714502791}}
[1714502792228] [DBG] HUB enter <function HUB.pub_hub at 0x7f7fa2bad9e0> ('info', '{"mac": "48:3f:da:55:07:5c", "version": "R240430;master;82e78ab3cb504ee2727a21589ce1ba8e1629dbc4", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714502791}}]}', '/')
[1714502792228] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5c", "version": "R240430;master;82e78ab3cb504ee2727a21589ce1ba8e1629dbc4", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714502791}}]} }
[1714502792228] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f7fa2bae840> ('/48:3f:da:55:07:5c/info', '{"mac": "48:3f:da:55:07:5c", "version": "R240430;master;82e78ab3cb504ee2727a21589ce1ba8e1629dbc4", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714502791}}]}')
[1714502792229] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f7fa2bae840> ret: None
[1714502792229] [DBG] HUB exit <function HUB.pub_hub at 0x7f7fa2bad9e0> ret: None
[1714502792258] [DBG] HUB enter <function HUB.__on_message at 0x7f7fa2bacc20> ('>48:3f:da:55:07:5c/3996365522/user/add', b'"J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco="')
[1714502792258] [INFO] HUB Message: {topic: >48:3f:da:55:07:5c/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1714502792260] [INFO] DEV-3996365522 User created. User count: 1
[1714502792260] [DBG] HUB enter <function HUB.pub at 0x7f7fa2badb20> ('3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1714502792261] [DBG] HUB enter <function HUB.pub_hub at 0x7f7fa2bad9e0> ('3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1714502792261] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1714502792261] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f7fa2bae840> ('<48:3f:da:55:07:5c/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1714502792261] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f7fa2bae840> ret: None
[1714502792261] [DBG] HUB exit <function HUB.pub_hub at 0x7f7fa2bad9e0> ret: None
[1714502792261] [DBG] HUB exit <function HUB.pub at 0x7f7fa2badb20> ret: True
[1714502792261] [DBG] HUB exit <function HUB.__on_message at 0x7f7fa2bacc20> ret: None
[1714502793310] [DBG] HUB enter <function HUB.__on_message at 0x7f7fa2bacc20> ('>user/dev', b'yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY=')
[1714502793310] [INFO] HUB Message: {topic: >user/dev, value: yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY= }
[1714502793310] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f7fa2bae840> ('<user/dev', '48:3f:da:55:07:5c/3996365522')
[1714502793312] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f7fa2bae840> ret: None
[1714502793312] [DBG] HUB exit <function HUB.__on_message at 0x7f7fa2bacc20> ret: None
[1714502793361] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f7fa2bae480> ()
[1714502793361] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f7fa2bae480> ret: None
Suite stderr:
2024-04-30 18:46:32,240 - TEST - INFO - OP take: 1026.624 ms
2024-04-30 18:46:32,244 - TEST - INFO - Connected with result code: 0
2024-04-30 18:46:32,252 - TEST - INFO - OP take: 10.092 ms
2024-04-30 18:46:32,252 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-04-30 18:46:32,253 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-04-30 18:46:32,304 - TEST - INFO - OP take: 50.743 ms
2024-04-30 18:46:32,305 - TEST - INFO - User created: "OK"
2024-04-30 18:46:33,307 - TEST - INFO - User-ID hash: yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY=
File "/actions-runner/_work/esp32-mpy-uclient/esp32-mpy-uclient/tests/test_tpl.py", line 85, in _ucl_step_thread
self._uclient.step()
File "/actions-runner/_work/esp32-mpy-uclient/esp32-mpy-uclient/src/uclient/hub.py", line 260, in step
self.client.step()
File "/actions-runner/_work/esp32-mpy-uclient/esp32-mpy-uclient/src/uclient/mqtt_transport.py", line 147, in step
self.client.check_msg()
File "/actions-runner/_work/esp32-mpy-uclient/esp32-mpy-uclient/src/net/mqtt.py", line 255, in check_msg
return self.wait_msg()
^^^^^^^^^^^^^^^
File "/actions-runner/_work/esp32-mpy-uclient/esp32-mpy-uclient/src/net/mqtt.py", line 217, in wait_msg
assert sz == b"\x02"
^^^^^^^^^^^^^
2024-04-30 18:46:33,360 - TEST - INFO - OP take: 50.779 ms
2024-04-30 18:46:33,360 - TEST - INFO - ===> Found device: 48:3f:da:55:07:5c/3996365522
2024-04-30 18:46:33,361 - TEST - WARNING - Disconecting from broker