mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests: fix expected automount config in nsswitch.conf
The test TestIpaClientAutomountFileRestore expects a specific order for the automount sources to query in /etc/nsswitch.conf. With authselect update 1.3.0, the databases are sorted in order of likelihood and the following line in seen: automount: files sss instead of automount: sss files Since the test doesn't care about the order but rather about the list of sources, ignore the order. Fixes: https://pagure.io/freeipa/issue/9067 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
@@ -323,7 +323,9 @@ class TestIpaClientAutomountFileRestore(IntegrationTest):
|
||||
if no_sssd:
|
||||
assert after_ipa_client_automount == ['files', 'ldap']
|
||||
else:
|
||||
assert after_ipa_client_automount == ['sss', 'files']
|
||||
# The default order depends on the authselect version
|
||||
# but we only care about the list of sources, not their order
|
||||
assert sorted(after_ipa_client_automount) == ['files', 'sss']
|
||||
|
||||
cmd = self.clients[0].run_command(grep_automount_command)
|
||||
assert cmd.stdout_text.split() == after_ipa_client_automount
|
||||
|
||||
Reference in New Issue
Block a user