Blob Blame History Raw
From 7ad500e5d3f7d9af81e8a3137158672c6fafb0b4 Mon Sep 17 00:00:00 2001
From: Anuja More <amore@redhat.com>
Date: Thu, 10 Feb 2022 17:29:45 +0530
Subject: [PATCH] Mark xfail
 test_gidnumber_not_corresponding_existing_group[true,hybrid]

Related : https://github.com/SSSD/sssd/issues/5988

Signed-off-by: Anuja More <amore@redhat.com>
Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Anuja More <amore@redhat.com>
---
 ipatests/test_integration/test_trust.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/ipatests/test_integration/test_trust.py b/ipatests/test_integration/test_trust.py
index 54bd154628cb8fb063d9839d7928acd37647e2a4..c128378151ec4c0fb295823d75f2a04df2f7ffa0 100644
--- a/ipatests/test_integration/test_trust.py
+++ b/ipatests/test_integration/test_trust.py
@@ -1169,9 +1169,12 @@ class TestPosixAutoPrivateGroup(BaseTestTrust):
                                                  raiseonerr=False)
             tasks.assert_error(result, "no such user")
         else:
-            (uid, gid) = self.get_user_id(self.clients[0], posixuser)
-            assert uid == gid
-            assert uid == '10060'
+            sssd_version = tasks.get_sssd_version(self.clients[0])
+            with xfail_context(sssd_version <= tasks.parse_version('2.6.3'),
+                               'https://github.com/SSSD/sssd/issues/5988'):
+                (uid, gid) = self.get_user_id(self.clients[0], posixuser)
+                assert uid == gid
+                assert uid == '10060'
 
     @pytest.mark.parametrize('type', ['hybrid', 'true', "false"])
     def test_only_uid_number_auto_private_group_default(self, type):
-- 
2.34.1