ipatests: tasks: add ipactl start, stop and restart

Include functions to manage IdM service using ipactl, in particular
starting, stopping and restarting the service.

Signed-off-by: Michal Polovka <mpolovka@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
Michal Polovka authored and Florence Blanc-Renaud committed 2022-06-02 14:03:01 +02:00
1 parent 352b9dfb49
commit 58ddcffc41
1 file changed
+18
+18
View File
@@ -2659,6 +2659,24 @@ def wait_for_ipa_to_start(host, timeout=60):
break
def stop_ipa_server(host):
"""Stop the entire IdM server using the ipactl utility.
"""
host.run_command([paths.IPACTL, "stop"])
def start_ipa_server(host):
"""Start the entire IdM server using the ipactl utility
"""
host.run_command([paths.IPACTL, "start"])
def restart_ipa_server(host):
"""Restart the entire IdM server using the ipactl utility
"""
host.run_command([paths.IPACTL, "restart"])
def dns_update_system_records(host):
"""Runs "ipa dns-update-system-records" on "host".
"""