From 8ba15027d4fdca6aabda00494d29a528e1ce53d4 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Fri, 18 Sep 2020 10:50:12 +0200 Subject: [PATCH] test_smb: skip test_smb_service_s4u2self for fed31 The test test_integration/test_smb.py::TestSMB::test_smb_service_s4u2self is expected to fail in Fedora <= 31 as it requires krb >= 1.18 that is shipped from fedora 32 only. Skip the test depending on the fedora version. Fixes: https://pagure.io/freeipa/issue/8505 Reviewed-By: Rob Crittenden --- ipatests/test_integration/test_smb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipatests/test_integration/test_smb.py b/ipatests/test_integration/test_smb.py index 65f99475a..3cc3fb71c 100644 --- a/ipatests/test_integration/test_smb.py +++ b/ipatests/test_integration/test_smb.py @@ -17,6 +17,7 @@ import pytest from ipatests.test_integration.base import IntegrationTest from ipatests.pytest_ipa.integration import tasks +from ipaplatform.osinfo import osinfo from ipaplatform.paths import paths @@ -348,6 +349,9 @@ class TestSMB(IntegrationTest): finally: self.cleanup_mount(mount_point) + @pytest.mark.skipif( + osinfo.id == 'fedora' and osinfo.version_number <= (31,), + reason='Test requires krb 1.18') def test_smb_service_s4u2self(self, enable_smb_server_dns_lookup_kdc): """Test S4U2Self operation by IPA service against both AD and IPA users