1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-24 04:23:53 +03:00

netcmd: silo member: update docstrings comments and print statements for grant + revoke

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Rob van der Linde
2023-11-08 09:26:15 +13:00
committed by Andrew Bartlett
parent becb0ecf35
commit d9552dc08d
2 changed files with 9 additions and 8 deletions

View File

@@ -528,7 +528,8 @@ class AuthSiloMemberCmdTestCase(SiloTest):
self.assertIsNone(result, msg=err)
self.assertIn(
f"User {member} added to the authentication silo {silo}", out)
f"User {member} granted access to the authentication silo {silo}",
out)
self.addCleanup(self.remove_silo_member, silo, member)
def remove_silo_member(self, silo, member):
@@ -603,7 +604,7 @@ class AuthSiloMemberCmdTestCase(SiloTest):
self.assertIsNone(result, msg=err)
self.assertIn(
f"User {name}$ added to the authentication silo {silo} (unassigned).",
f"User {name}$ granted access to the authentication silo {silo} (unassigned).",
out)
def test_member_add__unknown_user(self):