From cf76814ff6c1d3de649ff403e8b7000021d27e44 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 5 Dec 2025 16:39:59 +0100 Subject: [PATCH] Add a backport of #16602 to let tests pass. Signed-off-by: Miod Vallat --- regression-tests.api/test_Zones.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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. -- 2.47.3