Test Report : TEST-user_remove_test-20240330134947.xml

  • user_remove_test

Test Suite: user_remove_test-20240330134947

Results

Duration93.544 sec
Tests1
Failures0

Tests

user_remove_test

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

Suite stdout:

[1711806587426] [INFO] DEV-3996365522  Device 3996365522 (type: 1)  has been created
[1711806587426]  [DBG] DEV-3996365522  enter <function device_base.set_hub at 0x7f1cae9bd800> (<uclient.hub.HUB object at 0x7f1cadecb2d0>,)
[1711806587426]  [DBG] DEV-3996365522  exit <function device_base.set_hub at 0x7f1cae9bd800> ret: None
[1711806587426]  [DBG] MQTT  enter <function mqtt_transport.set_lastwill at 0x7f1cade5e7a0> ('<48:3f:da:55:07:5b/status', '-1')
[1711806587426]  [DBG] MQTT  exit <function mqtt_transport.set_lastwill at 0x7f1cade5e7a0> ret: None
[1711806587426]  [DBG] MQTT  enter <function mqtt_transport.on_connect at 0x7f1cade5ea20> (<bound method HUB.__on_connect of <uclient.hub.HUB object at 0x7f1cadecb2d0>>,)
[1711806587426]  [DBG] MQTT  exit <function mqtt_transport.on_connect at 0x7f1cade5ea20> ret: None
[1711806587426]  [DBG] MQTT  enter <function mqtt_transport.on_disconnect at 0x7f1cade5e8e0> (<bound method HUB.__on_disconnect of <uclient.hub.HUB object at 0x7f1cadecb2d0>>,)
[1711806587426]  [DBG] MQTT  exit <function mqtt_transport.on_disconnect at 0x7f1cade5e8e0> ret: None
[1711806587426] [WARN] HUB  Try to connect without uri-schema
[1711806587426]  [DBG] MQTT  enter <function mqtt_transport.connect at 0x7f1cade5f060> ('x.ks.ua',)
[1711806588429] [INFO] HUB  Connected
[1711806588430]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1cade5ede0> ('>hub', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1cadecb2d0>>)
[1711806588474]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1cade5ede0> ret: None
[1711806588474]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1cade5ede0> ('>user/dev', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1cadecb2d0>>)
[1711806588518]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1cade5ede0> ret: None
[1711806588518] [INFO] HUB  (HUB) Subscribe to : {topic: /48:3f:da:55:07:5b/time }
[1711806588518]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1cade5ede0> ('/48:3f:da:55:07:5b/time', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1cadecb2d0>>)
[1711806588562]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1cade5ede0> ret: None
[1711806588562] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/lifetime }
[1711806588562]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1cade5ede0> ('>48:3f:da:55:07:5b/lifetime', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1cadecb2d0>>)
[1711806588606]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1cade5ede0> ret: None
[1711806588606] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/error }
[1711806588606]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1cade5ede0> ('>48:3f:da:55:07:5b/error', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1cadecb2d0>>)
[1711806588650]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1cade5ede0> ret: None
[1711806588650] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/ping }
[1711806588650]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1cade5ede0> ('>48:3f:da:55:07:5b/ping', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1cadecb2d0>>)
[1711806588694]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1cade5ede0> ret: None
[1711806588694] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/version }
[1711806588694]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1cade5ede0> ('>48:3f:da:55:07:5b/version', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1cadecb2d0>>)
[1711806588738]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1cade5ede0> ret: None
[1711806588738]  [DBG] MQTT  exit <function mqtt_transport.connect at 0x7f1cade5f060> ret: None
[1711806588739]  [DBG] HUB  Step, state: 0 (next: 1711806589739)
[1711806588739] [INFO] HUB  Publish reg token: 48:3f:da:55:07:5b
[1711806588739]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1cade5ef20> ('/reg', '48:3f:da:55:07:5b')
[1711806588782]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1cade5ef20> ret: None
[1711806588826] [INFO] HUB  Message: {topic: /48:3f:da:55:07:5b/time, value: 1711806588784 }
[1711806588826] [INFO] HUB  Registration finish, time: 1711806588784
[1711806588826]  [DBG] DEV-3996365522  enter <function device_base.register at 0x7f1cae9bdd00> (1711806588,)
[1711806588826] [INFO] DEV-3996365522  Device 3996365522 registration on the server @ 1711806588
[1711806588826] [INFO] HUB  (HUB) Subscribe to : {topic: >48:3f:da:55:07:5b/3996365522/# }
[1711806588826]  [DBG] MQTT  enter <function mqtt_transport.subscribe at 0x7f1cade5ede0> ('>48:3f:da:55:07:5b/3996365522/#', <bound method HUB.__on_message of <uclient.hub.HUB object at 0x7f1cadecb2d0>>)
[1711806588870]  [DBG] MQTT  exit <function mqtt_transport.subscribe at 0x7f1cade5ede0> ret: None
[1711806588870]  [DBG] DEV-3996365522  exit <function device_base.register at 0x7f1cae9bdd00> ret: None
[1711806589739]  [DBG] HUB  Step, state: 1 (next: 1711806590739)
[1711806589739]  [DBG] DEV-3996365522  enter <function device_base.info_req at 0x7f1cae9be5c0> ()
[1711806589739]  [DBG] DEV-3996365522  exit <function device_base.info_req at 0x7f1cae9be5c0> ret: {'s': 3996365522, 't': 1, 'r': {0: 3996365522, 1: 1711806588}}
[1711806589739] [INFO] HUB  Publish message: { topic: info, value: {"mac": "48:3f:da:55:07:5b", "version": "R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711806588}}]} }
[1711806589739]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1cade5ef20> ('/48:3f:da:55:07:5b/info', '{"mac": "48:3f:da:55:07:5b", "version": "R240211;master;b48a960de2b1f0e64477f527a2e95d41f5d6be7a", "type": "mpy", "prot": 2, "devices": [{"s": 3996365522, "t": 1, "r": {"0": 3996365522, "1": 1711806588}}]}')
[1711806589739]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1cade5ef20> ret: None
[1711806589760] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "J8GTl7SsleUnuPB7dDFeuC8H9p0DqRakOESA2TMzPdt87U7HJ6xID8J+Pl1Yor/PRyw5Sg9xDF9ssU76TnMeSdU6CAUEj513Bn7xmNXaPaW9fd+mhgp2UthablkMIRPr7QGz0Lw+YXRLzpJmVpisNg==.6KMI62AT1YzWAQ4SWOxESxwfDhoAm1+JBIBvUQsvuco=" }
[1711806589763] [INFO] DEV-3996365522  User created. User count: 1
[1711806589763] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1711806589763]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1cade5ef20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1711806589763]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1cade5ef20> ret: None
[1711806590826] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "kMSaH2sAtnjYQo1QEGiyj2n9vxy24JybrJOjoQw3xQj+Uo4EBkY5WQEfi/RkyCBz.hEyJ1w/ve0Taa1IT5/WdtZ34j/wQOU1qFB6FfH9sq5I=" }
[1711806620839] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "yb8hteXNtGeZxbC7dmXq6agIvC1IA1dYyfIQLJJ+MnyZxfb6CzFFayKGYWmbm69HCYHYCObNnN/kelZdK3dpUgrb2TtPCQT7lGHDt9fWZUjDBieZVFzm3aHCA8C3J+m3N2RgZH+bGhMyY0H2Ga6uVA==.kTKQBlbH6PsLHpZ+glv08emxw3D19xcn51gomGZCTNg=" }
[1711806620843] [INFO] DEV-3996365522  User created. User count: 2
[1711806620844] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1711806620844]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1cade5ef20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1711806620844]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1cade5ef20> ret: None
[1711806620854] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "yb8hteXNtGeZxbC7dmXq6agIvC1IA1dYyfIQLJJ+MnzrC5DXnmZokQmw9/TUqkdV.UvEnYSujBLrGOwPpQs/LoHRLtdywhF265Vxarl/6kM8=" }
[1711806620854] [INFO] HUB  Publish message: { topic: 3996365522/user/remove, value: "LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng=" }
[1711806620856]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1cade5ef20> ('<48:3f:da:55:07:5b/3996365522/user/remove', '"LY4YVzC3waUcqthcsYyA6A==.qOn6Czfan1IbrJmfXjdBHXmv4Qr1zMEhFuMrfWrEVng="')
[1711806620857]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1cade5ef20> ret: None
[1711806620908] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/add, value: "h8ZTNnLcP55enmIYHhi0J2DGVo7fERzXByyR7j4f4beCPD+aATBs3zmrwP6rEBU+fCDI1i6SMfKoBed5p3+6RPEB3IwioouTLdpr6/+rp+vOFcxsAJUwvWMMCyq40BhIAmvQAow96X+jbJSBRBbe7g==.9WJiDWI9xL06JY2h3lfCAa2vShZwHi3B4xEqh7k7sYQ=" }
[1711806620909] [INFO] DEV-3996365522  User created. User count: 2
[1711806620909] [INFO] HUB  Publish message: { topic: 3996365522/user/add, value: "hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE=" }
[1711806620909]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1cade5ef20> ('<48:3f:da:55:07:5b/3996365522/user/add', '"hdMU2nT5by40zEY21b1Ufg==.F1SYOOcOwzmUSeNJDfOJjHHt6JMjw/o3mwEREqPbwWE="')
[1711806620910]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1cade5ef20> ret: None
[1711806620952] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "4RlvQyyK7+lDAy/AGMqvjBmopjkr6DaAaHoFrFzCguKX7lgeZVPglz4P/ITzogYS.BTGHFzXvLYjXUNoiK/WYmnWjvCn9DaCuWhX9rNgsWYA=" }
[1711806620953]  [ERR] DEV-3996365522  User (likeable.jennifer@dlab.pw (6f40c97205063c5919dc37fc0f63d8c0fc4b08ebed0e20766f89dd25f41be21e)) don't have permission to remove users
[1711806649739]  [DBG] HUB  Step, state: 2 (next: 1711806709739)
[1711806649739] [INFO] HUB  Publish message: { topic: status, value: 4 }
[1711806649739]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1cade5ef20> ('/48:3f:da:55:07:5b/status', 4)
[1711806649739]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1cade5ef20> ret: None
[1711806649739]  [DBG] DEV-3996365522  enter <function device_base.publish_status at 0x7f1cae9bdbc0> ()
[1711806649739] [INFO] HUB  Publish message: { topic: 3996365522/status, value: 4 }
[1711806649739]  [DBG] MQTT  enter <function mqtt_transport.publish at 0x7f1cade5ef20> ('<48:3f:da:55:07:5b/3996365522/status', 4)
[1711806649739]  [DBG] MQTT  exit <function mqtt_transport.publish at 0x7f1cade5ef20> ret: None
[1711806649739]  [DBG] DEV-3996365522  exit <function device_base.publish_status at 0x7f1cae9bdbc0> ret: None
[1711806650957] [INFO] HUB  Message: {topic: >48:3f:da:55:07:5b/3996365522/user/remove, value: "t4A0rgiyQGewXHe34p0tZrReXsqBu0LlUs2Clpw24bhRVXnIoHyWsb2dhIHDSV9E.gRC+lb9eqDYZntPUQiKgAQBJYvrm831Q8+Qa4N+Dsu0=" }
[1711806650957]  [ERR] DEV-3996365522  User can't remove himself
[1711806680963]  [DBG] MQTT  enter <function mqtt_transport.disconnect at 0x7f1cade5eb60> ()
[1711806680966] [WARN] HUB  Disconecting from broker
[1711806680966] [WARN] MQTT  Reconnecting in 1s
[1711806680966]  [DBG] MQTT  exit <function mqtt_transport.disconnect at 0x7f1cade5eb60> ret: None

Suite stderr:

2024-03-30 13:49:49,744 - TEST - INFO - OP take: 1005.248 ms
2024-03-30 13:49:49,753 - TEST - INFO - Connected with result code: 0
2024-03-30 13:49:49,758 - TEST - INFO - OP take: 10.077 ms
2024-03-30 13:49:49,758 - TEST - INFO - Create user: admin@admin.com pwd: 11223344 user_id: fb81c4cc20a3d5d1c700b89c4ebaecf786ea76c0518c7592119b6949f912d44e
2024-03-30 13:49:49,759 - TEST - INFO - [dev] => { 'user/add' : 'J8GTl7SsleUnuPB7dDFeuC8H9p0DqRak' }
2024-03-30 13:49:49,806 - TEST - INFO - OP take: 40.466 ms
2024-03-30 13:49:49,807 - TEST - INFO - User created: "OK"
2024-03-30 13:49:50,811 - TEST - INFO - ##### Unknown user remove test #####
2024-03-30 13:49:50,821 - TEST - INFO - [dev] => { 'user/remove' : 'kMSaH2sAtnjYQo1QEGiyj2n9vxy24Jyb' }
2024-03-30 13:50:20,833 - TEST - INFO - Error was returned as planned
2024-03-30 13:50:20,835 - TEST - INFO - ##### Known user remove test #####
2024-03-30 13:50:20,836 - TEST - INFO - Create user: affable.james@i.ua pwd: zqwf7p00 user_id: 6eb720297efb5d35039bbb22bf8660dbbbb058608d0ab41693988d29222ef0fa
2024-03-30 13:50:20,837 - TEST - INFO - [dev] => { 'user/add' : 'yb8hteXNtGeZxbC7dmXq6agIvC1IA1dY' }
2024-03-30 13:50:20,852 - TEST - INFO - OP take: 10.122 ms
2024-03-30 13:50:20,853 - TEST - INFO - User created: "OK"
2024-03-30 13:50:20,853 - TEST - INFO - [dev] => { 'user/remove' : 'yb8hteXNtGeZxbC7dmXq6agIvC1IA1dY' }
2024-03-30 13:50:20,907 - TEST - INFO - OP take: 50.613 ms
2024-03-30 13:50:20,907 - TEST - INFO - User removed. OK
2024-03-30 13:50:20,907 - TEST - INFO - ##### Known user remove without permissions test #####
2024-03-30 13:50:20,908 - TEST - INFO - Create user: likeable.jennifer@dlab.pw pwd: ebs3n2u9 user_id: 6f40c97205063c5919dc37fc0f63d8c0fc4b08ebed0e20766f89dd25f41be21e
2024-03-30 13:50:20,908 - TEST - INFO - [dev] => { 'user/add' : 'h8ZTNnLcP55enmIYHhi0J2DGVo7fERzX' }
2024-03-30 13:50:20,951 - TEST - INFO - OP take: 41.431 ms
2024-03-30 13:50:20,952 - TEST - INFO - User created: "OK"
2024-03-30 13:50:20,952 - TEST - INFO - [dev] => { 'user/remove' : '4RlvQyyK7+lDAy/AGMqvjBmopjkr6DaA' }
2024-03-30 13:50:50,953 - TEST - INFO - Error was returned as planned
2024-03-30 13:50:50,955 - TEST - INFO - ##### Removing myself test #####
2024-03-30 13:50:50,956 - TEST - INFO - [dev] => { 'user/remove' : 't4A0rgiyQGewXHe34p0tZrReXsqBu0Ll' }
2024-03-30 13:51:20,961 - TEST - INFO - Error was returned as planned
2024-03-30 13:51:20,967 - TEST - WARNING - Disconecting from broker
2024-03-30 13:51:20,970 - TEST - WARNING - Disconecting from broker