From d02ec40901e5e2673196640fdcf1cb49574f63d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Cami?= Date: Thu, 4 Mar 2021 08:02:00 +0100 Subject: [PATCH] ipatests: tasks.py: add dns_update_system_records MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a frontend to "ipa dns-update-system-records" to tasks.py. Related: https://pagure.io/freeipa/issue/8534 Signed-off-by: François Cami Reviewed-By: Florence Blanc-Renaud Reviewed-By: Rob Crittenden Reviewed-By: Mohammad Rizwan Yusuf --- ipatests/pytest_ipa/integration/tasks.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ipatests/pytest_ipa/integration/tasks.py b/ipatests/pytest_ipa/integration/tasks.py index 3102e47a3..e443aa015 100755 --- a/ipatests/pytest_ipa/integration/tasks.py +++ b/ipatests/pytest_ipa/integration/tasks.py @@ -2608,6 +2608,15 @@ def wait_for_ipa_to_start(host, timeout=60): break +def dns_update_system_records(host): + """Runs "ipa dns-update-system-records" on "host". + """ + kinit_admin(host) + host.run_command( + ["ipa", "dns-update-system-records"] + ) + + def run_ssh_cmd( from_host=None, to_host=None, username=None, cmd=None, auth_method=None, password=None, private_key_path=None,