mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
Test that IPA certs are removed on server uninstall
Test that IPA certs are removed after the server uninstall process. This is needed since if these certs are not removed from the system store, further installations will fail. Related: https://pagure.io/freeipa/issue/8614 Signed-off-by: Antonio Torres <antorres@redhat.com> Reviewed-By: Francois Cami <fcami@redhat.com>
This commit is contained in:
parent
4a3a39f59f
commit
6f830ae1ad
@ -963,6 +963,15 @@ def uninstall_master(host, ignore_topology_disconnect=True,
|
||||
|
||||
result = host.run_command(uninstall_cmd)
|
||||
assert "Traceback" not in result.stdout_text
|
||||
|
||||
# Check that IPA certs have been deleted after uninstall
|
||||
# Related: https://pagure.io/freeipa/issue/8614
|
||||
assert host.run_command(['test', '-f', paths.IPA_CA_CRT],
|
||||
raiseonerr=False).returncode == 1
|
||||
assert host.run_command(['test', '-f', paths.IPA_P11_KIT],
|
||||
raiseonerr=False).returncode == 1
|
||||
assert "IPA CA" not in host.run_command(['trust', 'list']).stdout_text
|
||||
|
||||
if clean:
|
||||
Firewall(host).disable_services(["freeipa-ldap", "freeipa-ldaps",
|
||||
"freeipa-trust", "dns"])
|
||||
|
Loading…
Reference in New Issue
Block a user