From: Miod Vallat Date: Fri, 5 Dec 2025 15:39:59 +0000 (+0100) Subject: Add a backport of #16602 to let tests pass. X-Git-Tag: auth-5.0.2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf76814ff6c1d3de649ff403e8b7000021d27e44;p=thirdparty%2Fpdns.git Add a backport of #16602 to let tests pass. Signed-off-by: Miod Vallat --- diff --git a/regression-tests.api/test_Zones.py b/regression-tests.api/test_Zones.py index f637ffb53e..8f85c05f96 100644 --- a/regression-tests.api/test_Zones.py +++ b/regression-tests.api/test_Zones.py @@ -1672,7 +1672,11 @@ $NAME$ 1D IN SOA ns1.example.org. hostmaster.example.org. ( self.assert_success(r) # verify the zone contents data1 = self.get_zone(name) - self.assertEqual(get_rrset(data1, 'a.'+name)['records'], [ a1, a3 ]) + # note that we can't assume anything about the order of the records + records = get_rrset(data1, 'a.' + name, 'A')['records'] + self.assertEqual(len(records), 2) + self.assertTrue(a1 in records) + self.assertTrue(a3 in records) # get_rrset above has removed the timestamps from data1, fetch the # zone again, since we want to ensure the following operations do # not change anything.