mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests: cleanup in test_subdomain_lookup_with_certmaprule_containing_dn
As tests was failing <= fedora31 Thus removed certmap-rule in cleanup as subdomain lookup fails when certmaprule contains DN. Related: https://pagure.io/SSSD/sssd/issue/3721 Signed-off-by: Anuja More <amore@redhat.com> Reviewed-By: Kaleemullah Siddiqui <ksiddiqu@redhat.com> Reviewed-By: Armando Neto <abiagion@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Mohammad Rizwan <myusuf@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
committed by
François Cami
parent
460fea3cc1
commit
068646f0b5
@@ -471,15 +471,19 @@ class TestSSSDWithAdTrust(IntegrationTest):
|
||||
"--matchrule='<ISSUER>{}'".format(cert_subject),
|
||||
"--domain={}".format(self.master.domain.name)
|
||||
])
|
||||
tasks.clear_sssd_cache(self.master)
|
||||
|
||||
# verify the user can be retrieved after the certmaprule is added
|
||||
second_res = self.master.run_command(['id', self.users['ad']['name']])
|
||||
|
||||
assert first_res.stdout_text == second_res.stdout_text
|
||||
verify_in_stdout = ['gid', 'uid', 'groups', self.users['ad']['name']]
|
||||
for text in verify_in_stdout:
|
||||
assert text in second_res.stdout_text
|
||||
try:
|
||||
tasks.clear_sssd_cache(self.master)
|
||||
# verify the user can be retrieved after the certmaprule is added
|
||||
second_res = self.master.run_command(
|
||||
['id', self.users['ad']['name']])
|
||||
assert first_res.stdout_text == second_res.stdout_text
|
||||
verify_in_stdout = ['gid', 'uid', 'groups',
|
||||
self.users['ad']['name']]
|
||||
for text in verify_in_stdout:
|
||||
assert text in second_res.stdout_text
|
||||
finally:
|
||||
self.master.run_command(
|
||||
['ipa', 'certmaprule-del', "'{}'".format(cert_subject)])
|
||||
|
||||
@contextmanager
|
||||
def override_gid_setup(self, gid):
|
||||
|
||||
Reference in New Issue
Block a user