mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 16:10:02 -06:00
ipatests: make sure ipa-client-automount reverts sssd.conf
Due to https://pagure.io/SSSD/sssd/issue/4149 ipa-client-automount fails to remove the ipa_automount_location entry from sssd.conf. Test that autofs_provider and ipa_automount_location are removed. Fixes: https://pagure.io/freeipa/issue/8190 Signed-off-by: François Cami <fcami@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
e1b6e3ba9b
commit
5f9d528184
@ -332,6 +332,20 @@ class TestIpaClientAutomountFileRestore(IntegrationTest):
|
||||
"ipa-client-automount", "--uninstall", "-U"
|
||||
])
|
||||
|
||||
if not no_sssd:
|
||||
# https://pagure.io/freeipa/issue/8190
|
||||
# check that no ipa_automount_location is left in sssd.conf
|
||||
# also check for autofs_provider for good measure
|
||||
grep_automount_in_sssdconf_cmd = \
|
||||
"egrep ipa_automount_location\\|autofs_provider " \
|
||||
"/etc/sssd/sssd.conf"
|
||||
cmd = self.clients[0].run_command(
|
||||
grep_automount_in_sssdconf_cmd, raiseonerr=False
|
||||
)
|
||||
assert cmd.returncode == 1, \
|
||||
"PG8190 regression found: ipa_automount_location still " \
|
||||
"present in sssd.conf"
|
||||
|
||||
cmd = self.clients[0].run_command(grep_automount_command)
|
||||
assert cmd.stdout_text.split() == after_ipa_client_install
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user