mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
@@ -205,7 +205,7 @@ class TestInstallWithCA1(InstallTestBase1):
|
|||||||
ldap_conf = paths.OPENLDAP_LDAP_CONF
|
ldap_conf = paths.OPENLDAP_LDAP_CONF
|
||||||
base_dn = self.master.domain.basedn
|
base_dn = self.master.domain.basedn
|
||||||
client = self.replicas[0]
|
client = self.replicas[0]
|
||||||
tasks.uninstall_master(client)
|
tasks.uninstall_replica(self.master, client)
|
||||||
expected_msg1 = "contains deprecated and unsupported " \
|
expected_msg1 = "contains deprecated and unsupported " \
|
||||||
"entries: HOST, PORT"
|
"entries: HOST, PORT"
|
||||||
file_backup = client.get_file_contents(ldap_conf, encoding='utf-8')
|
file_backup = client.get_file_contents(ldap_conf, encoding='utf-8')
|
||||||
|
|||||||
Reference in New Issue
Block a user