mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
bitbake: hashserv: Allow self-service deletion
Allows users to self-service deletion of their own user accounts (meaning, they can delete their own accounts without special permissions). (Bitbake rev: 2d4439948a5328a9768bca9eaec221eb82af3cb2) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1699870a0c
commit
33cde47e10
@@ -683,10 +683,13 @@ class HashEquivalenceCommonTests(object):
|
||||
|
||||
user = self.create_user("test-user", [])
|
||||
|
||||
# No self service
|
||||
with self.auth_client(user) as client, self.assertRaises(InvokeError):
|
||||
# self service
|
||||
with self.auth_client(user) as client:
|
||||
client.delete_user(user["username"])
|
||||
|
||||
self.assertIsNone(admin_client.get_user(user["username"]))
|
||||
user = self.create_user("test-user", [])
|
||||
|
||||
with self.auth_perms() as client, self.assertRaises(InvokeError):
|
||||
client.delete_user(user["username"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user