From 7bbb997150fedf8ac5d8ef106414a0ffcf9e921b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Cami?= Date: Thu, 8 Oct 2020 06:49:47 +0200 Subject: [PATCH] ipatests: tasks: add user_del MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add an "ipa user-del" frontend to tasks.py. Related: https://pagure.io/freeipa/issue/8536 Signed-off-by: François Cami Reviewed-By: Florence Blanc-Renaud Reviewed-By: Kaleemullah Siddiqui --- ipatests/pytest_ipa/integration/tasks.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ipatests/pytest_ipa/integration/tasks.py b/ipatests/pytest_ipa/integration/tasks.py index e44609d81..e2a764a2e 100755 --- a/ipatests/pytest_ipa/integration/tasks.py +++ b/ipatests/pytest_ipa/integration/tasks.py @@ -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,