From 99c87d9f88cd0b066fe3b04cf46a82b8a13320a9 Mon Sep 17 00:00:00 2001 From: Sergey Orlov Date: Wed, 29 Apr 2020 12:39:42 +0200 Subject: [PATCH] ipatests: mark test_kdcproxy_handles_small_packets_from_ad xfail The test fails with older versions of kdcproxy as the related bug was fixed in 0.4.2: https://github.com/latchset/kdcproxy/pull/44 --- ipatests/test_integration/test_http_kdc_proxy.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ipatests/test_integration/test_http_kdc_proxy.py b/ipatests/test_integration/test_http_kdc_proxy.py index 1146a91de5f..1cbf6d8b66c 100644 --- a/ipatests/test_integration/test_http_kdc_proxy.py +++ b/ipatests/test_integration/test_http_kdc_proxy.py @@ -13,9 +13,9 @@ from ipatests.pytest_ipa.integration.fixtures import ipa_ad_trust from ipatests.pytest_ipa.integration.firewall import Firewall from ipatests.test_integration.base import IntegrationTest +from ipatests.util import xfail_context from ipaplatform.paths import paths - @pytest.mark.usefixtures('ipa_ad_trust') class TestHttpKdcProxy(IntegrationTest): topology = "line" @@ -197,4 +197,9 @@ def test_kdcproxy_handles_small_packets_from_ad(self, users): tasks.clear_sssd_cache(self.master) user = users['ad'] with self.configure_kdc_proxy_for_ad_trust(use_tcp=True): - tasks.kinit_as_user(self.client, user['name'], user['password']) + kdcproxy_version = tasks.get_python_package_version( + self.master, 'kdcproxy') + with xfail_context(kdcproxy_version < tasks.parse_version('0.4.2'), + 'https://github.com/latchset/kdcproxy/pull/44'): + tasks.kinit_as_user( + self.client, user['name'], user['password'])