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