mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-26 07:00:07 -05:00
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:
1 parent
ef752bf208
commit
d02ec40901
1 file changed
+9
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user