mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 07:33:27 -06:00
ipatests: Fix test_ipa_cert_fix.py::TestCertFixReplica teardown
Fixture `expire_certs` moves date back after renewing the certs. This is causing the ipa-replica to fail. This fix first uninstalls the server then moves back the date. Fixes: https://pagure.io/freeipa/issue/9052 Signed-off-by: Mohammad Rizwan <myusuf@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
parent
f1a441858a
commit
f18a6c023b
@ -389,6 +389,12 @@ class TestCertFixReplica(IntegrationTest):
|
|||||||
setup_dns=False, extra_args=['--no-ntp']
|
setup_dns=False, extra_args=['--no-ntp']
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def uninstall(cls, mh):
|
||||||
|
# Uninstall method is empty as the uninstallation is done in
|
||||||
|
# the fixture
|
||||||
|
pass
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def expire_certs(self):
|
def expire_certs(self):
|
||||||
# move system date to expire certs
|
# move system date to expire certs
|
||||||
@ -398,7 +404,8 @@ class TestCertFixReplica(IntegrationTest):
|
|||||||
yield
|
yield
|
||||||
|
|
||||||
# move date back on replica and master
|
# move date back on replica and master
|
||||||
for host in self.master, self.replicas[0]:
|
for host in self.replicas[0], self.master:
|
||||||
|
tasks.uninstall_master(host)
|
||||||
tasks.move_date(host, 'start', '-3years-1days')
|
tasks.move_date(host, 'start', '-3years-1days')
|
||||||
|
|
||||||
def test_renew_expired_cert_replica(self, expire_certs):
|
def test_renew_expired_cert_replica(self, expire_certs):
|
||||||
|
Loading…
Reference in New Issue
Block a user