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:
François Cami 2020-10-08 06:49:47 +02:00 committed by Florence Blanc-Renaud
parent fbd7d77189
commit 7bbb997150

View File

@ -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,