Skip to content

Commit

Permalink
Mark test to skip sssd-2.2.2
Browse files Browse the repository at this point in the history
Test test_ext_grp_with_ldap is marked as skip as
fix for https://pagure.io/SSSD/sssd/issue/4073
unavailable with sssd-2.2.2

Related: https://pagure.io/SSSD/sssd/issue/4073

Signed-off-by: Anuja More <amore@redhat.com>
Reviewed-By: Sergey Orlov <sorlov@redhat.com>
  • Loading branch information
amore17 authored and abbra committed Mar 17, 2020
1 parent b2ab286 commit 6018cca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ipatests/test_integration/test_sssd.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import tasks
from ipaplatform.tasks import tasks as platform_tasks
from ipaplatform.osinfo import osinfo
from ipaplatform.paths import paths
from ipapython.dn import DN
Expand Down Expand Up @@ -296,6 +297,12 @@ def test_ext_grp_with_ldap(self):
in group with same name of nonprivate ipa user and possix id, then
lookup of aduser and group should be successful when cache is empty.
"""
cmd = self.master.run_command(['sssd', '--version'])
sssd_version = platform_tasks.parse_ipa_version(
cmd.stdout_text.strip())
if sssd_version <= platform_tasks.parse_ipa_version('2.2.2'):
pytest.skip("Fix for https://pagure.io/SSSD/sssd/issue/4073 "
"unavailable with sssd-2.2.2")
client = self.clients[0]
user = 'ipatest'
userid = '100996'
Expand Down

0 comments on commit 6018cca

Please sign in to comment.