Test Report : TEST-user_list_test-20240210232923.xml
Test Suite: user_list_test-20240210232923
Results
| Duration | 3.445 sec |
| Tests | 1 |
| Failures | 0 |
Tests
user_list_test
| Test case: | test |
| Outcome: | Passed |
| Duration: | 3.445 sec |
| Failed | None |
None
Suite stdout:
[1707607763788] [INFO] DEV-3996365522 Device 3996365522 (type: 1) has been created
[1707607763788] [DBG] DEV-3996365522 enter <function device_base.set_hub at 0x7f24829bfba0> (<uclient.hub.HUB object at 0x7f2481d044d0>,)
[1707607763788] [DBG] DEV-3996365522 exit <function device_base.set_hub at 0x7f24829bfba0> ret: None
[1707607763788] [DBG] MQTT enter <function mqtt_transport.set_lastwill at 0x7f2481e92160> ('<48:3f:da:55:07:5b/status', '-1')
[1707607763788] [DBG] MQTT exit <function mqtt_transport.set_lastwill at 0x7f2481e92160> ret: None
[1707607763788] [DBG] MQTT enter <function mqtt_transport.on_connect at 0x7f2481e923e0> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f2481d044d0>>,)
[1707607763788] [DBG] MQTT exit <function mqtt_transport.on_connect at 0x7f2481e923e0> ret: None
[1707607763788] [DBG] MQTT enter <function mqtt_transport.on_disconnect at 0x7f2481e922a0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f2481d044d0>>,)
[1707607763788] [DBG] MQTT exit <function mqtt_transport.on_disconnect at 0x7f2481e922a0> ret: None
[1707607763788] [WARN] HUB Try to connect without uri-schema
[1707607763788] [DBG] MQTT enter <function mqtt_transport.connect at 0x7f2481e92a20> ('x.ks.ua',)
[1707607764797] [INFO] HUB Connected
[1707607764797] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2481e927a0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2481d044d0>>)
[1707607764839] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2481e927a0> ret: None
[1707607764839] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2481e927a0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2481d044d0>>)
[1707607764883] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2481e927a0> ret: None
[1707607764883] [INFO] HUB (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1707607764883] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2481e927a0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2481d044d0>>)
[1707607764927] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2481e927a0> ret: None
[1707607764927] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1707607764927] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2481e927a0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2481d044d0>>)
[1707607764971] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2481e927a0> ret: None
[1707607764971] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1707607764971] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2481e927a0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2481d044d0>>)
[1707607765015] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2481e927a0> ret: None
[1707607765015] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1707607765015] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2481e927a0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2481d044d0>>)
[1707607765059] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2481e927a0> ret: None
[1707607765059] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1707607765059] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2481e927a0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2481d044d0>>)
[1707607765103] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2481e927a0> ret: None
[1707607765103] [DBG] MQTT exit <function mqtt_transport.connect at 0x7f2481e92a20> ret: None
[1707607765104] [DBG] HUB Step, state: 0 (next: 1707607766104)
[1707607765104] [INFO] HUB Publish reg token: 48:3f:da:55:07:5b
[1707607765104] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f2481e928e0> ('/reg', '48:3f:da:55:07:5b')
[1707607765148] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f2481e928e0> ret: None
[1707607765195] [INFO] HUB Message: {topic: /48:3f:da:55:07:5b/time, value: 1707607765151 }
[1707607765195] [INFO] HUB Registration finish, time: 1707607765151
[1707607765195] [DBG] DEV-3996365522 enter <function device_base.register at 0x7f24829e00e0> (1707607765,)
[1707607765195] [INFO] DEV-3996365522 Device 3996365522 registration on the server @ 1707607765
[1707607765195] [INFO] HUB (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1707607765195] [DBG] MQTT enter <function mqtt_transport.subscribe at 0x7f2481e927a0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f2481d044d0>>)
[1707607765239] [DBG] MQTT exit <function mqtt_transport.subscribe at 0x7f2481e927a0> ret: None
[1707607765239] [DBG] DEV-3996365522 exit <function device_base.register at 0x7f24829e00e0> ret: None
[1707607766104] [DBG] HUB Step, state: 1 (next: 1707607767104)
[1707607766104] [DBG] DEV-3996365522 enter <function device_base.info_req at 0x7f24829e09a0> ()
[1707607766104] [DBG] DEV-3996365522 exit <function device_base.info_req at 0x7f24829e09a0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1707607765}}
[1707607766104] [INFO] HUB Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240201;master;e89029bf60793daed45c8101ee145a73cc811f6e", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707607765}}]} }
[1707607766104] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f2481e928e0> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240201;master;e89029bf60793daed45c8101ee145a73cc811f6e", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1707607765}}]}')
[1707607766104] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f2481e928e0> ret: None
[1707607766124] [INFO] HUB Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1707607766128] [INFO] DEV-3996365522 User created. User count: 1
[1707607766128] [INFO] HUB Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1707607766128] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f2481e928e0> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1707607766128] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f2481e928e0> ret: None
[1707607767175] [INFO] HUB Message: {topic: >user/dev, value: yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY= }
[1707607767175] [DBG] MQTT enter <function mqtt_transport.publish at 0x7f2481e928e0> ('<user/dev', '48:3f:da:55:07:5b/3996365522')
[1707607767176] [DBG] MQTT exit <function mqtt_transport.publish at 0x7f2481e928e0> ret: None
[1707607767220] [DBG] MQTT enter <function mqtt_transport.disconnect at 0x7f2481e92520> ()
[1707607767221] [DBG] MQTT exit <function mqtt_transport.disconnect at 0x7f2481e92520> ret: None
[1707607767221] [WARN] HUB Disconecting from broker
Suite stderr:
2024-02-10 23:29:26,109 - TEST - INFO - OP take: 1005.554 ms
2024-02-10 23:29:26,114 - TEST - INFO - Connected with result code: 0
2024-02-10 23:29:26,121 - TEST - INFO - OP take: 10.117 ms
2024-02-10 23:29:26,121 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-02-10 23:29:26,122 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-02-10 23:29:26,168 - TEST - INFO - OP take: 42.195 ms
2024-02-10 23:29:26,170 - TEST - INFO - User created: "OK"
2024-02-10 23:29:27,174 - TEST - INFO - User-ID hash: yt2q8P3UwdnRsQHRD9VS9TKrGx0aaSfbDOXC7m1xjHY=
2024-02-10 23:29:27,220 - TEST - INFO - OP take: 40.55 ms
2024-02-10 23:29:27,220 - TEST - INFO - ===> Found device: 48:3f:da:55:07:5b/3996365522
2024-02-10 23:29:27,226 - TEST - WARNING - Disconecting from broker