From 496e3ace8537cc86d4faae30204105e3c1863cfd Mon Sep 17 00:00:00 2001 From: Mohammad Rizwan Date: Fri, 15 Sep 2023 12:16:06 +0530 Subject: [PATCH] ipatests: restart ipa services after moving date When system date is moved into future, it have unprecedented behavior i.e CA becomes irresponsive or unexpected certificcate state. Hence restart the ipa service after moving the date to gracefully serve the request. Fixes: https://pagure.io/freeipa/issue/9379 Signed-off-by: Mohammad Rizwan Reviewed-By: Florence Blanc-Renaud --- ipatests/test_integration/test_ipa_cert_fix.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ipatests/test_integration/test_ipa_cert_fix.py b/ipatests/test_integration/test_ipa_cert_fix.py index 77076e78e..ec9456e51 100644 --- a/ipatests/test_integration/test_ipa_cert_fix.py +++ b/ipatests/test_integration/test_ipa_cert_fix.py @@ -408,6 +408,9 @@ class TestCertFixReplica(IntegrationTest): # move system date to expire certs for host in self.master, self.replicas[0]: tasks.move_date(host, 'stop', '+3years+1days') + host.run_command( + ['ipactl', 'restart', '--ignore-service-failures'] + ) yield