Test Report : TEST-user_remove_test-20240427173836.xml

  • user_remove_test

Test Suite: user_remove_test-20240427173836

Results

Duration93.518 sec
Tests1
Failures0

Tests

user_remove_test

Test case:test
Outcome:Passed
Duration:93.518 sec
FailedNone
None

Suite stdout:

[1714239516271] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1714239516271]  [DBG] DEV-3996365522  enter <function device_base.set_hub at 0x7fb83f125800> (<uclient.hub.HUB object at 0x7fb83e76ab50>,)
[1714239516271]  [DBG] DEV-3996365522  exit <function device_base.set_hub at 0x7fb83f125800> ret: None
[1714239516271]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7fb83e5ce7a0> ('<48:3f:da:55:07:5b/status', '-1')
[1714239516271]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7fb83e5ce7a0> ret: None
[1714239516271]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7fb83e5cea20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7fb83e76ab50>>,)
[1714239516271]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7fb83e5cea20> ret: None
[1714239516271]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7fb83e5ce8e0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7fb83e76ab50>>,)
[1714239516271]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7fb83e5ce8e0> ret: None
[1714239516271] [WARN] HUB  Try to connect without uri-schema
[1714239516271]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7fb83e5cf060> ('x.ks.ua',)
[1714239517274] [INFO] HUB  Connected
[1714239517274]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb83e5cede0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb83e76ab50>>)
[1714239517318]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb83e5cede0> ret: None
[1714239517318]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb83e5cede0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb83e76ab50>>)
[1714239517362]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb83e5cede0> ret: None
[1714239517362] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1714239517362]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb83e5cede0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb83e76ab50>>)
[1714239517406]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb83e5cede0> ret: None
[1714239517406] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1714239517406]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb83e5cede0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb83e76ab50>>)
[1714239517450]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb83e5cede0> ret: None
[1714239517450] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1714239517450]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb83e5cede0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb83e76ab50>>)
[1714239517494]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb83e5cede0> ret: None
[1714239517494] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1714239517494]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb83e5cede0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb83e76ab50>>)
[1714239517538]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb83e5cede0> ret: None
[1714239517538] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1714239517538]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb83e5cede0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb83e76ab50>>)
[1714239517582]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb83e5cede0> ret: None
[1714239517582]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7fb83e5cf060> ret: None
[1714239517583]  [DBG] HUB  Step, state: 0 (next: 1714239518583)
[1714239517583] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1714239517583]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fb83e5cef20> ('/reg', '48:3f:da:55:07:5b')
[1714239517626]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fb83e5cef20> ret: None
[1714239517674] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1714239517629 }
[1714239517674] [INFO] HUB  Registration finish, time: 1714239517629
[1714239517674]  [DBG] DEV-3996365522  enter <function device_base.register at 0x7fb83f125d00> (1714239517,)
[1714239517674] [INFO] DEV-3996365522  Device 3996365522 registration on the server @ 1714239517
[1714239517674] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1714239517674]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7fb83e5cede0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7fb83e76ab50>>)
[1714239517718]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7fb83e5cede0> ret: None
[1714239517718]  [DBG] DEV-3996365522  exit <function device_base.register at 0x7fb83f125d00> ret: None
[1714239518583]  [DBG] HUB  Step, state: 1 (next: 1714239519583)
[1714239518583]  [DBG] DEV-3996365522  enter <function device_base.info_req at 0x7fb83f1265c0> ()
[1714239518583]  [DBG] DEV-3996365522  exit <function device_base.info_req at 0x7fb83f1265c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1714239517}}
[1714239518583] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d98ab4d8ece41a102d19b961364f22d5e93d21ca", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714239517}}]} }
[1714239518583]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fb83e5cef20> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240414;master;d98ab4d8ece41a102d19b961364f22d5e93d21ca", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1714239517}}]}')
[1714239518583]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fb83e5cef20> ret: None
[1714239518603] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1714239518604] [INFO] DEV-3996365522  User created. User count: 1
[1714239518604] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1714239518604]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fb83e5cef20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1714239518604]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fb83e5cef20> ret: None
[1714239519656] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "8M0W8nwEFMYihAPHLkskHHUDXNM1awi03mA23qeuxvnJKq+3gaxB6aXS3OejV6Eu.J2qOpg2cqh7XMpc0A7FsVK/JHt1at5nyCkAZXEcy5gE=" }
[1714239549661] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "GjTQIWXGEtmj6iF0GuG2SIiGPpDqPGFzVsKV/rXFcLg3Rxku+HlvWmkGMIpY+sdKGMY5lL4HuQWuumZnyzmq+t2IhwzZJjSp4b000VuhERXpuml0mTGWIA+7TngYJB3ZU3jqKzQ+ajCUX8YwTGRsyQ==.FRUImacBBcfHtAoSVhXdzWitc/qrWGh/yB/s5KUnGsw=" }
[1714239549662] [INFO] DEV-3996365522  User created. User count: 2
[1714239549662] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1714239549662]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fb83e5cef20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1714239549662]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fb83e5cef20> ret: None
[1714239549668] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "GjTQIWXGEtmj6iF0GuG2SIiGPpDqPGFzVsKV/rXFcLi/1UAGvCYzlxYwb84RBneU.5t8cxNHxisn0lGxLmeIbDZpjS50+X6cUsMbah8nvIbI=" }
[1714239549668] [INFO] HUB  Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1714239549668]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fb83e5cef20> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1714239549668]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fb83e5cef20> ret: None
[1714239549722] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "mRQa2h3XQ1xpra1z9x32LuEcJnTAKbdh9nJUDUmq1UPH6pqYHtawkGlaSR6wdkjhuYB1KLJvDw4btqwiI7f0+m8reI7P59ISvv2AK8DdLMTxD7kFck5nIQ09qSuW5b/O/M/PoITyZELlJUAfFUD62g==.aXw7NDq1CJDdtO2zxzeIvrka5BUPc/G73gJdzNFQsEI=" }
[1714239549722] [INFO] DEV-3996365522  User created. User count: 2
[1714239549723] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1714239549723]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fb83e5cef20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1714239549723]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fb83e5cef20> ret: None
[1714239549773] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "pI18+mdOZe+4PQO8cEZua1LlYe/BOUGe7TYh2udf3IZKI0xfxADVH6Epx1LK3RWP.wLHnYAl2X1ECukIfVhqKzh3EzYOwr0bKnWCnbmDSuyg=" }
[1714239549773]  [ERR] DEV-3996365522  User (amiable.barbara@x.ks.ua (0e79792bcf7b60c9bbe4d8bf11889a4b10ba09e146bd04c28969d0d635a50980)) don't have permission to remove users
[1714239578583]  [DBG] HUB  Step, state: 2 (next: 1714239638583)
[1714239578583] [INFO] HUB  Publish message: { topic: status, value: 4 }
[1714239578583]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fb83e5cef20> ('/48:3f:da:55:07:5b/status', 4)
[1714239578583]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fb83e5cef20> ret: None
[1714239578583]  [DBG] DEV-3996365522  enter <function device_base.publish_status at 0x7fb83f125bc0> ()
[1714239578583] [INFO] HUB  Publish message: { topic: 3996365522/status, value: 4 }
[1714239578583]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7fb83e5cef20> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1714239578583]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7fb83e5cef20> ret: None
[1714239578583]  [DBG] DEV-3996365522  exit <function device_base.publish_status at 0x7fb83f125bc0> ret: None
[1714239579777] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1714239579777]  [ERR] DEV-3996365522  User can't remove himself
[1714239609783]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7fb83e5ceb60> ()
[1714239609786]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7fb83e5ceb60> ret: None
[1714239609790] [WARN] HUB  Disconecting from broker

Suite stderr:

2024-04-27 17:38:38,589 - TEST - INFO - OP take: 1006.066 ms
2024-04-27 17:38:38,598 - TEST - INFO - Connected with result code: 0
2024-04-27 17:38:38,602 - TEST - INFO - OP take: 10.067 ms
2024-04-27 17:38:38,602 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-04-27 17:38:38,602 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-04-27 17:38:38,653 - TEST - INFO - OP take: 50.655 ms
2024-04-27 17:38:38,654 - TEST - INFO - User created: "OK"
2024-04-27 17:38:39,654 - TEST - INFO - ##### Unknown user remove test #####
2024-04-27 17:38:39,655 - TEST - INFO - [dev] => { 'user/remove' : '8M0W8nwEFMYihAPHLkskHHUDXNM1awi0' }
2024-04-27 17:39:09,658 - TEST - INFO - Error was returned as planned
2024-04-27 17:39:09,658 - TEST - INFO - ##### Known user remove test #####
2024-04-27 17:39:09,659 - TEST - INFO - Create user: likeable.barbara@hotmail.com pwd: kb46ffkf user_id: af821cccb9e6b2b989a8532d82ca812ed062c7769d160f996f49ee0b6cff3108
2024-04-27 17:39:09,660 - TEST - INFO - [dev] => { 'user/add' : 'GjTQIWXGEtmj6iF0GuG2SIiGPpDqPGFz' }
2024-04-27 17:39:09,667 - TEST - INFO - OP take: 0.003 ms
2024-04-27 17:39:09,667 - TEST - INFO - User created: "OK"
2024-04-27 17:39:09,667 - TEST - INFO - [dev] => { 'user/remove' : 'GjTQIWXGEtmj6iF0GuG2SIiGPpDqPGFz' }
2024-04-27 17:39:09,721 - TEST - INFO - OP take: 51.01 ms
2024-04-27 17:39:09,721 - TEST - INFO - User removed. OK
2024-04-27 17:39:09,721 - TEST - INFO - ##### Known user remove without permissions test #####
2024-04-27 17:39:09,721 - TEST - INFO - Create user: amiable.barbara@x.ks.ua pwd: qf9ok132 user_id: 0e79792bcf7b60c9bbe4d8bf11889a4b10ba09e146bd04c28969d0d635a50980
2024-04-27 17:39:09,721 - TEST - INFO - [dev] => { 'user/add' : 'mRQa2h3XQ1xpra1z9x32LuEcJnTAKbdh' }
2024-04-27 17:39:09,772 - TEST - INFO - OP take: 50.602 ms
2024-04-27 17:39:09,773 - TEST - INFO - User created: "OK"
2024-04-27 17:39:09,773 - TEST - INFO - [dev] => { 'user/remove' : 'pI18+mdOZe+4PQO8cEZua1LlYe/BOUGe' }
2024-04-27 17:39:39,774 - TEST - INFO - Error was returned as planned
2024-04-27 17:39:39,775 - TEST - INFO - ##### Removing myself test #####
2024-04-27 17:39:39,776 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2024-04-27 17:40:09,781 - TEST - INFO - Error was returned as planned
2024-04-27 17:40:09,786 - TEST - WARNING - Disconecting from broker
2024-04-27 17:40:09,787 - TEST - WARNING - Disconecting from broker