From e619c9f448fbeedc009e05b46745fab2b871fb38 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 8 Jan 2021 14:21:22 -0500 Subject: [PATCH] Remove invalid test case for DNS SRV priority Upstream dnspython 2.1.0 introduced additional error checking on SRV values and now rejects invalid priorities. Remove the sorting test for priority of -1. https://pagure.io/freeipa/issue/8650 Signed-off-by: Rob Crittenden Reviewed-By: Florence Blanc-Renaud --- ipatests/test_ipapython/test_dnsutil.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/ipatests/test_ipapython/test_dnsutil.py b/ipatests/test_ipapython/test_dnsutil.py index c7db7b368..5e7a46197 100644 --- a/ipatests/test_ipapython/test_dnsutil.py +++ b/ipatests/test_ipapython/test_dnsutil.py @@ -55,9 +55,6 @@ class TestSortSRV: h380 = mksrv(4, 0, 80, u"host3") assert dnsutil.sort_prio_weight([h1, h3, h380]) == [h1, h3, h380] - hs = mksrv(-1, 0, 443, u"special") - assert dnsutil.sort_prio_weight([h1, h2, hs]) == [hs, h1, h2] - def assert_permutations(self, answers, permutations): seen = set() for _unused in range(1000):