mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests: call server-del before replica uninstall
The test test_replica_promotion.py::TestRenewalMaster:: test_automatic_renewal_master_transfer_ondelete is calling ipa-server-install --uninstall directly without performing first ipa server-del. This can lead to incomplete uninstallation and test failures. Call tasks.uninstall_replica instead of tasks.uninstall_master. This is equivalent to ipa-replica-manage del + uninstall (ipa-replica-manage del works in DL0 and DL1 and internally calls ipa server-del in DL1). Fixes: https://pagure.io/freeipa/issue/8792 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
parent
e8e456e3f6
commit
56639861a9
@ -402,7 +402,7 @@ class TestRenewalMaster(IntegrationTest):
|
||||
def test_automatic_renewal_master_transfer_ondelete(self):
|
||||
# Test that after replica uninstallation, master overtakes the cert
|
||||
# renewal master role from replica (which was previously set there)
|
||||
tasks.uninstall_master(self.replicas[0])
|
||||
tasks.uninstall_replica(self.master, self.replicas[0])
|
||||
result = self.master.run_command(['ipa', 'config-show']).stdout_text
|
||||
assert("IPA CA renewal master: %s" % self.master.hostname in result), (
|
||||
"Master hostname not found among CA renewal masters"
|
||||
|
Loading…
Reference in New Issue
Block a user