]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add a backport of #16602 to let tests pass. 16599/head
authorMiod Vallat <miod.vallat@powerdns.com>
Fri, 5 Dec 2025 15:39:59 +0000 (16:39 +0100)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 5 Dec 2025 15:39:59 +0000 (16:39 +0100)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
regression-tests.api/test_Zones.py

index f637ffb53e3cb7495bf9389fba44c41b444c484b..8f85c05f96dbdb100d4213186e6ac42c9303670f 100644 (file)
@@ -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.