mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
ipatests: tasks: add user_del
Add an "ipa user-del" frontend to tasks.py. Related: https://pagure.io/freeipa/issue/8536 Signed-off-by: François Cami <fcami@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Kaleemullah Siddiqui <ksiddiqu@redhat.com>
This commit is contained in:
parent
fbd7d77189
commit
7bbb997150
@ -1901,6 +1901,11 @@ def user_add(host, login, first='test', last='user', extra_args=(),
|
||||
return host.run_command(cmd, stdin_text=stdin_text)
|
||||
|
||||
|
||||
def user_del(host, login):
|
||||
cmd = ["ipa", "user-del", login]
|
||||
return host.run_command(cmd)
|
||||
|
||||
|
||||
def group_add(host, groupname, extra_args=()):
|
||||
cmd = [
|
||||
"ipa", "group-add", groupname,
|
||||
|
Loading…
Reference in New Issue
Block a user