From 6f49cc06569f46c8830d57498421a7e6fd9e4d94 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Sat, 5 Jun 2021 13:09:49 +0200 Subject: [PATCH] ipatests: delete the replica before uninstallation The test test_installation.py::TestInstallWithCA1::test_install_with_bad_ldap_conf is uninstalling a replica by calling ipa-server-install --uninstall directly, instead of deleting the replica first. Use tasks.uninstall_replica instead of tasks.uninstall_master to perform a proper uninstallation. Fixes: https://pagure.io/freeipa/issue/8876 Signed-off-by: Florence Blanc-Renaud Reviewed-By: Rob Crittenden --- ipatests/test_integration/test_installation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipatests/test_integration/test_installation.py b/ipatests/test_integration/test_installation.py index 02bcd6f54..301767b8d 100644 --- a/ipatests/test_integration/test_installation.py +++ b/ipatests/test_integration/test_installation.py @@ -205,7 +205,7 @@ class TestInstallWithCA1(InstallTestBase1): ldap_conf = paths.OPENLDAP_LDAP_CONF base_dn = self.master.domain.basedn client = self.replicas[0] - tasks.uninstall_master(client) + tasks.uninstall_replica(self.master, client) expected_msg1 = "contains deprecated and unsupported " \ "entries: HOST, PORT" file_backup = client.get_file_contents(ldap_conf, encoding='utf-8')