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 <flo@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Florence Blanc-Renaud 2021-06-05 13:09:49 +02:00
parent 5c83ec06fa
commit 6f49cc0656

View File

@ -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')