Test Report : TEST-user_list_test-20240503194127.xml
Test Suite: user_list_test-20240503194127
Results
| Duration | 3.143 sec |
| Tests | 1 |
| Failures | 0 |
Tests
user_list_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.143 sec |
| Failed | None |
None
Suite stdout:
[1714765287630] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1714765287630] [DBG] DEV-3996365522 enter <function device_base.set_hub at 0x7f35f884bba0> (<uclient.hub.HUB object at 0x7f35f7b8ffd0>,)
[1714765287630] [DBG] DEV-3996365522 exit <function device_base.set_hub at 0x7f35f884bba0> ret: None
[1714765287630] [DBG] HUB enter <function HUB.register_root_cb at 0x7f35f7d1c9a0> ('>user/dev', <bound method user_device.on_user_dev of <uclient.userdev.user_device object at 0x7f35f7b8f150>>)
[1714765287630] [DBG] HUB exit <function HUB.register_root_cb at 0x7f35f7d1c9a0> ret: None
[1714765287630] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f35f7d1e0c0> ('<48:3f:da:55:07:5c/status', '-1')
[1714765287631] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f35f7d1e0c0> ret: None
[1714765287631] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f35f7d1e340> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f35f7b8ffd0>>,)
[1714765287631] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f35f7d1e340> ret: None
[1714765287631] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f35f7d1e200> (<bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f35f7b8ffd0>>,)
[1714765287631] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f35f7d1e200> ret: None
[1714765287631] [DBG] HUB enter <function HUB.connect at 0x7f35f7d719e0> ()
[1714765287631] [WARN] HUB Try to connect without uri-schema
[1714765287631] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f35f7d1e980> ('x.ks.ua',)
[1714765288637] [DBG] HUB enter <function HUB.__on_connect at 0x7f35f7d1cfe0> ()
[1714765288637] [INFO] HUB Connected
[1714765288637] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f35f7d1e700> ('>hub', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f35f7b8ffd0>>)
[1714765288637] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f35f7d1e700> ret: None
[1714765288637] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f35f7d1e700> ('>user/dev', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f35f7b8ffd0>>)
[1714765288637] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f35f7d1e700> ret: None
[1714765288637] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f35f7d1d8a0> ('time', '/')
[1714765288637] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5c/time }
[1714765288637] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f35f7d1e700> ('/48:3f:da:55:07:5c/time', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f35f7b8ffd0>>)
[1714765288637] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f35f7d1e700> ret: None
[1714765288637] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f35f7d1d8a0> ret: None
[1714765288637] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f35f7d1d8a0> ('lifetime', '>')
[1714765288637] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/lifetime }
[1714765288637] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f35f7d1e700> ('>48:3f:da:55:07:5c/lifetime', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f35f7b8ffd0>>)
[1714765288637] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f35f7d1e700> ret: None
[1714765288637] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f35f7d1d8a0> ret: None
[1714765288637] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f35f7d1d8a0> ('error', '>')
[1714765288637] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/error }
[1714765288637] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f35f7d1e700> ('>48:3f:da:55:07:5c/error', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f35f7b8ffd0>>)
[1714765288637] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f35f7d1e700> ret: None
[1714765288637] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f35f7d1d8a0> ret: None
[1714765288637] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f35f7d1d8a0> ('ping', '>')
[1714765288637] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/ping }
[1714765288637] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f35f7d1e700> ('>48:3f:da:55:07:5c/ping', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f35f7b8ffd0>>)
[1714765288638] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f35f7d1e700> ret: None
[1714765288638] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f35f7d1d8a0> ret: None
[1714765288638] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f35f7d1d8a0> ('version', '>')
[1714765288638] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/version }
[1714765288638] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f35f7d1e700> ('>48:3f:da:55:07:5c/version', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f35f7b8ffd0>>)
[1714765288638] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f35f7d1e700> ret: None
[1714765288638] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f35f7d1d8a0> ret: None
[1714765288638] [DBG] HUB exit <function HUB.__on_connect at 0x7f35f7d1cfe0> ret: None
[1714765288638] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f35f7d1e980> ret: None
[1714765288638] [DBG] HUB exit <function HUB.connect at 0x7f35f7d719e0> ret: None
[1714765288648] [DBG] HUB Step, state: 0 (next: 1714765289648)
[1714765288648] [DBG] HUB enter <function HUB.__send_reg at 0x7f35f7d1d120> ()
[1714765288648] [INFO] HUB Publish reg token: 48:3f:da:55:07:5c
[1714765288649] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f35f7d1e840> ('/reg', '48:3f:da:55:07:5c')
[1714765288649] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f35f7d1e840> ret: None
[1714765288649] [DBG] HUB exit <function HUB.__send_reg at 0x7f35f7d1d120> ret: None
[1714765288685] [DBG] HUB enter <function HUB.__on_message at 0x7f35f7d1cc20> ('/48:3f:da:55:07:5c/time', b'1714765288684')
[1714765288685] [INFO] HUB Message: {topic: /48:3f:da:55:07:5c/time, value: 1714765288684 }
[1714765288685] [DBG] HUB enter <function HUB.__time_hnd at 0x7f35f7d1d760> ('1714765288684',)
[1714765288685] [INFO] HUB Registration finish, time: 1714765288684
[1714765288685] [DBG] DEV-3996365522 enter <function device_base.register at 0x7f35f886c0e0> (1714765288,)
[1714765288685] [INFO] DEV-3996365522 Device 3996365522 registration on the server @ 1714765288
[1714765288685] [DBG] HUB enter <function HUB.subscribe_hub at 0x7f35f7d1d8a0> ('3996365522/#', '>')
[1714765288685] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5c/3996365522/# }
[1714765288685] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f35f7d1e700> ('>48:3f:da:55:07:5c/3996365522/#', <bound method log.dbg_wr.<locals>.wrapper of <uclient.hub.HUB object at 0x7f35f7b8ffd0>>)
[1714765288685] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f35f7d1e700> ret: None
[1714765288685] [DBG] HUB exit <function HUB.subscribe_hub at 0x7f35f7d1d8a0> ret: None
[1714765288685] [DBG] DEV-3996365522 exit <function device_base.register at 0x7f35f886c0e0> ret: None
[1714765288685] [DBG] HUB exit <function HUB.__time_hnd at 0x7f35f7d1d760> ret: None
[1714765288685] [DBG] HUB exit <function HUB.__on_message at 0x7f35f7d1cc20> ret: None
[1714765289648] [DBG] HUB Step, state: 1 (next: 1714765290648)
[1714765289649] [DBG] DEV-3996365522 enter <function device_base.info_req at 0x7f35f886c9a0> ()
[1714765289649] [DBG] DEV-3996365522 exit <function device_base.info_req at 0x7f35f886c9a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714765288}}
[1714765289649] [DBG] HUB enter <function HUB.pub_hub at 0x7f35f7d1d9e0> ('info', '{"mac": "48:3f:da:55:07:5c", "version": "R240430;master;38274a5b8a83c5fa684f71a958848479413f7085", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714765288}}]}', '/')
[1714765289649] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5c", "version": "R240430;master;38274a5b8a83c5fa684f71a958848479413f7085", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714765288}}]} }
[1714765289649] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f35f7d1e840> ('/48:3f:da:55:07:5c/info', '{"mac": "48:3f:da:55:07:5c", "version": "R240430;master;38274a5b8a83c5fa684f71a958848479413f7085", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714765288}}]}')
[1714765289650] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f35f7d1e840> ret: None
[1714765289650] [DBG] HUB exit <function HUB.pub_hub at 0x7f35f7d1d9e0> ret: None
[1714765289678] [DBG] HUB enter <function HUB.__on_message at 0x7f35f7d1cc20> ('>48:3f:da:55:07:5c/3996365522/user/add', b'"J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco="')
[1714765289678] [INFO] HUB Message: {topic: >48:3f:da:55:07:5c/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1714765289679] [INFO] DEV-3996365522 User created. User count: 1
[1714765289680] [DBG] HUB enter <function HUB.pub at 0x7f35f7d1db20> ('3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1714765289680] [DBG] HUB enter <function HUB.pub_hub at 0x7f35f7d1d9e0> ('3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1714765289680] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1714765289680] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f35f7d1e840> ('<48:3f:da:55:07:5c/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1714765289680] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f35f7d1e840> ret: None
[1714765289680] [DBG] HUB exit <function HUB.pub_hub at 0x7f35f7d1d9e0> ret: None
[1714765289680] [DBG] HUB exit <function HUB.pub at 0x7f35f7d1db20> ret: True
[1714765289680] [DBG] HUB exit <function HUB.__on_message at 0x7f35f7d1cc20> ret: None
[1714765290722] [DBG] HUB enter <function HUB.__on_message at 0x7f35f7d1cc20> ('>user/dev', b'yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY=')
[1714765290722] [INFO] HUB Message: {topic: >user/dev, value: yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY= }
[1714765290722] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f35f7d1e840> ('<user/dev', '48:3f:da:55:07:5c/3996365522')
[1714765290722] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f35f7d1e840> ret: None
[1714765290722] [DBG] HUB exit <function HUB.__on_message at 0x7f35f7d1cc20> ret: None
[1714765290771] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f35f7d1e480> ()
[1714765290772] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f35f7d1e480> ret: None
Suite stderr:
2024-05-03 19:41:29,662 - TEST - INFO - OP take: 1023.82 ms
2024-05-03 19:41:29,665 - TEST - INFO - Connected with result code: 0
2024-05-03 19:41:29,673 - TEST - INFO - OP take: 10.086 ms
2024-05-03 19:41:29,674 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-05-03 19:41:29,674 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-05-03 19:41:29,718 - TEST - INFO - OP take: 40.582 ms
2024-05-03 19:41:29,719 - TEST - INFO - User created: "OK"
2024-05-03 19:41:30,720 - 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-05-03 19:41:30,771 - TEST - INFO - OP take: 50.742 ms
2024-05-03 19:41:30,771 - TEST - INFO - ===> Found device: 48:3f:da:55:07:5c/3996365522
2024-05-03 19:41:30,772 - TEST - WARNING - Disconecting from broker