mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
ipatests: mark known failures for autoprivategroup
Two tests have known issues in test_trust.py with sssd 2.8.2+: - TestNonPosixAutoPrivateGroup::test_idoverride_with_auto_private_group (when called with the "hybrid" parameter) - TestPosixAutoPrivateGroup::test_only_uid_number_auto_private_group_default (when called with the "true" parameter) Related: https://pagure.io/freeipa/issue/9295 Signed-off-by: Florence Blanc-Renaud <flo@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
dc8590ef66
commit
3bba254ccd
@ -1154,11 +1154,15 @@ class TestNonPosixAutoPrivateGroup(BaseTestTrust):
|
|||||||
self.gid_override
|
self.gid_override
|
||||||
):
|
):
|
||||||
self.mod_idrange_auto_private_group(type)
|
self.mod_idrange_auto_private_group(type)
|
||||||
(uid, gid) = self.get_user_id(self.clients[0], nonposixuser)
|
sssd_version = tasks.get_sssd_version(self.clients[0])
|
||||||
assert (uid == self.uid_override and gid == self.gid_override)
|
bad_version = sssd_version >= tasks.parse_version("2.8.2")
|
||||||
|
cond = (type == 'hybrid') and bad_version
|
||||||
|
with xfail_context(condition=cond,
|
||||||
|
reason="https://pagure.io/freeipa/issue/9295"):
|
||||||
|
(uid, gid) = self.get_user_id(self.clients[0], nonposixuser)
|
||||||
|
assert (uid == self.uid_override and gid == self.gid_override)
|
||||||
test_group = self.clients[0].run_command(
|
test_group = self.clients[0].run_command(
|
||||||
["id", nonposixuser]).stdout_text
|
["id", nonposixuser]).stdout_text
|
||||||
# version = tasks.get_sssd_version(self.clients[0])
|
|
||||||
with xfail_context(type == "hybrid",
|
with xfail_context(type == "hybrid",
|
||||||
'https://github.com/SSSD/sssd/issues/5989'):
|
'https://github.com/SSSD/sssd/issues/5989'):
|
||||||
assert "domain users@{0}".format(self.ad_domain) in test_group
|
assert "domain users@{0}".format(self.ad_domain) in test_group
|
||||||
@ -1232,8 +1236,11 @@ class TestPosixAutoPrivateGroup(BaseTestTrust):
|
|||||||
posixuser = "testuser1@%s" % self.ad_domain
|
posixuser = "testuser1@%s" % self.ad_domain
|
||||||
self.mod_idrange_auto_private_group(type)
|
self.mod_idrange_auto_private_group(type)
|
||||||
if type == "true":
|
if type == "true":
|
||||||
(uid, gid) = self.get_user_id(self.clients[0], posixuser)
|
sssd_version = tasks.get_sssd_version(self.clients[0])
|
||||||
assert uid == gid
|
with xfail_context(sssd_version >= tasks.parse_version("2.8.2"),
|
||||||
|
"https://pagure.io/freeipa/issue/9295"):
|
||||||
|
(uid, gid) = self.get_user_id(self.clients[0], posixuser)
|
||||||
|
assert uid == gid
|
||||||
else:
|
else:
|
||||||
for host in [self.master, self.clients[0]]:
|
for host in [self.master, self.clients[0]]:
|
||||||
result = host.run_command(['id', posixuser], raiseonerr=False)
|
result = host.run_command(['id', posixuser], raiseonerr=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user