From 58ddcffc412f7dd5cc762bd6f80faa07fcedf7ec Mon Sep 17 00:00:00 2001 From: Michal Polovka Date: Tue, 24 May 2022 09:04:21 +0200 Subject: [PATCH] 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 Reviewed-By: Florence Blanc-Renaud --- ipatests/pytest_ipa/integration/tasks.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/ipatests/pytest_ipa/integration/tasks.py b/ipatests/pytest_ipa/integration/tasks.py index 5cbfa4e15..cba0b5b51 100755 --- a/ipatests/pytest_ipa/integration/tasks.py +++ b/ipatests/pytest_ipa/integration/tasks.py @@ -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". """