bb0ded
From 84381001d2e114b1f29fe89e16155c040b56b80f Mon Sep 17 00:00:00 2001
bb0ded
From: Anuja More <amore@redhat.com>
bb0ded
Date: Thu, 10 Feb 2022 17:07:45 +0530
bb0ded
Subject: [PATCH] mark xfail for
bb0ded
 test_idoverride_with_auto_private_group[hybrid]
bb0ded
bb0ded
Related : https://github.com/SSSD/sssd/issues/5989
bb0ded
bb0ded
Signed-off-by: Anuja More <amore@redhat.com>
bb0ded
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
bb0ded
Reviewed-By: Anuja More <amore@redhat.com>
bb0ded
---
bb0ded
 ipatests/test_integration/test_trust.py | 7 ++++++-
bb0ded
 1 file changed, 6 insertions(+), 1 deletion(-)
bb0ded
bb0ded
diff --git a/ipatests/test_integration/test_trust.py b/ipatests/test_integration/test_trust.py
bb0ded
index ff2dd9cc819e1c5620ce449384957a633ae6d1f0..54bd154628cb8fb063d9839d7928acd37647e2a4 100644
bb0ded
--- a/ipatests/test_integration/test_trust.py
bb0ded
+++ b/ipatests/test_integration/test_trust.py
bb0ded
@@ -15,6 +15,7 @@ from ipaplatform.paths import paths
bb0ded
 from ipatests.test_integration.base import IntegrationTest
bb0ded
 from ipatests.pytest_ipa.integration import tasks
bb0ded
 from ipatests.pytest_ipa.integration import fips
bb0ded
+from ipatests.util import xfail_context
bb0ded
 from ipapython.dn import DN
bb0ded
 from collections import namedtuple
bb0ded
 from contextlib import contextmanager
bb0ded
@@ -1110,7 +1111,11 @@ class TestNonPosixAutoPrivateGroup(BaseTestTrust):
bb0ded
             assert (uid == self.uid_override and gid == self.gid_override)
bb0ded
             test_group = self.clients[0].run_command(
bb0ded
                 ["id", nonposixuser]).stdout_text
bb0ded
-            assert "domain users@{0}".format(self.ad_domain) in test_group
bb0ded
+            version = tasks.get_sssd_version(self.clients[0])
bb0ded
+            with xfail_context(version <= tasks.parse_version('2.6.3')
bb0ded
+                               and type == "hybrid",
bb0ded
+                               'https://github.com/SSSD/sssd/issues/5989'):
bb0ded
+                assert "domain users@{0}".format(self.ad_domain) in test_group
bb0ded
 
bb0ded
     @pytest.mark.parametrize('type', ['hybrid', 'true', "false"])
bb0ded
     def test_nonposixuser_nondefault_primary_group(self, type):
bb0ded
-- 
bb0ded
2.34.1
bb0ded