From 4247fb9c73e940f459ab62dcd32157e6148c319e Mon Sep 17 00:00:00 2001 From: Anuja More Date: Fri, 19 Jun 2020 13:19:11 +0530 Subject: [PATCH] ipatests: xfail test with older versions of sssd Related to: https://pagure.io/SSSD/sssd/issue/4061 Signed-off-by: Anuja More Reviewed-By: Kaleemullah Siddiqui Reviewed-By: Armando Neto Reviewed-By: Florence Blanc-Renaud --- ipatests/test_integration/test_sssd.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ipatests/test_integration/test_sssd.py b/ipatests/test_integration/test_sssd.py index 1e3ee775e..cfbb30fec 100644 --- a/ipatests/test_integration/test_sssd.py +++ b/ipatests/test_integration/test_sssd.py @@ -507,7 +507,10 @@ class TestSSSDWithAdTrust(IntegrationTest): self.master.run_command(['id', user]) with self.override_gid_setup(gid): test_gid = self.master.run_command(['id', user]) - assert 'gid={id}'.format(id=gid) in test_gid.stdout_text + sssd_version = tasks.get_sssd_version(self.master) + with xfail_context(sssd_version < tasks.parse_version('2.3.0'), + 'https://pagure.io/SSSD/sssd/issue/4061'): + assert 'gid={id}'.format(id=gid) in test_gid.stdout_text class TestNestedMembers(IntegrationTest):