7e1b55
From d4062e407d242a72b9d4e32f4fdd6aed086ce005 Mon Sep 17 00:00:00 2001
7e1b55
From: Anuja More <amore@redhat.com>
7e1b55
Date: Thu, 5 Aug 2021 20:23:15 +0530
7e1b55
Subject: [PATCH] ipatests: skip test_basesearch_compat_tree on fedora.
7e1b55
7e1b55
slapi-nis with fix is not part of fedora yet.
7e1b55
test requires with fix:
7e1b55
https://pagure.io/slapi-nis/c/61ea8f6a104da25329e301a8f56944f860de8177?
7e1b55
7e1b55
Signed-off-by: Anuja More <amore@redhat.com>
7e1b55
Reviewed-By: Mohammad Rizwan <myusuf@redhat.com>
7e1b55
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
7e1b55
---
7e1b55
 ipatests/test_integration/test_commands.py | 7 +++++++
7e1b55
 1 file changed, 7 insertions(+)
7e1b55
7e1b55
diff --git a/ipatests/test_integration/test_commands.py b/ipatests/test_integration/test_commands.py
7e1b55
index e3a0d867e..4d9a81652 100644
7e1b55
--- a/ipatests/test_integration/test_commands.py
7e1b55
+++ b/ipatests/test_integration/test_commands.py
7e1b55
@@ -38,6 +38,7 @@ from ipatests.create_external_ca import ExternalCA
7e1b55
 from ipatests.test_ipalib.test_x509 import good_pkcs7, badcert
7e1b55
 from ipapython.ipautil import realm_to_suffix, ipa_generate_password
7e1b55
 from ipaserver.install.installutils import realm_to_serverid
7e1b55
+from pkg_resources import parse_version
7e1b55
 
7e1b55
 logger = logging.getLogger(__name__)
7e1b55
 
7e1b55
@@ -1565,6 +1566,12 @@ class TestIPACommandWithoutReplica(IntegrationTest):
7e1b55
 
7e1b55
         related: https://bugzilla.redhat.com/show_bug.cgi?id=1958909
7e1b55
         """
7e1b55
+        version = self.master.run_command(
7e1b55
+            ["rpm", "-qa", "--qf", "%{VERSION}", "slapi-nis"]
7e1b55
+        )
7e1b55
+        if tasks.get_platform(self.master) == "fedora" and parse_version(
7e1b55
+                version.stdout_text) <= parse_version("0.56.7"):
7e1b55
+            pytest.skip("Test requires slapi-nis with fix on fedora")
7e1b55
         tasks.kinit_admin(self.master)
7e1b55
         base_dn = str(self.master.domain.basedn)
7e1b55
         base = "cn=admins,cn=groups,cn=compat,{basedn}".format(basedn=base_dn)
7e1b55
-- 
7e1b55
2.31.1
7e1b55