ipatests: tasks.py: add dns_update_system_records

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 <fcami@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
Reviewed-By: Mohammad Rizwan Yusuf <myusuf@redhat.com>
This commit is contained in:
François Cami authored and Florence Blanc-Renaud committed 2021-04-01 18:21:55 +02:00
1 parent ef752bf208
commit d02ec40901
1 file changed
+9
+9
View File
@@ -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,