]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add more createReverse/createReverse6 error tests. 16657/head
authorMiod Vallat <miod.vallat@powerdns.com>
Thu, 18 Dec 2025 09:26:18 +0000 (10:26 +0100)
committerMiod Vallat <miod.vallat@powerdns.com>
Thu, 18 Dec 2025 09:26:18 +0000 (10:26 +0100)
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
regression-tests.auth-py/test_LuaRecords.py

index b0131e1f5d6d00c87d853bc3d3e0fd0fad334a10..2b5865c038d1af7503e285999b747fdf7ea23311 100644 (file)
@@ -1090,7 +1090,9 @@ class TestLuaRecords(BaseLuaTest):
             }),
             ".createreverse.example.org." : (dns.rdatatype.PTR, {
                 "4.3.2.1": "1-2-3-4.example.com.",
-                "10.10.10.10": "quad10.example.com."   # exception
+                "10.10.10.10": "quad10.example.com.",  # exception
+                # error: values not in the 0..255 range
+                "256.384.512.640": "error."
             }),
             ".createforward6.example.org." : (dns.rdatatype.AAAA, {
                 "2001--db8" : "2001::db8",
@@ -1101,7 +1103,11 @@ class TestLuaRecords(BaseLuaTest):
             }),
             ".createreverse6.example.org." : (dns.rdatatype.PTR, {
                 "8.b.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.2" : "2001--db8.example.com.",
-                "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2" : "example.example.com."   # exception
+                "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2" : "example.example.com.",   # exception
+                # error: fewer than 32 labels (including ".createreverse6.example.org.")
+                "8.b.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.0.2" : "unknown.",
+                # error: I and O instead of 1 and 0 in the would-be address
+                "O.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1.0.b.c.A.2.F.E.9.C.0.0.3.0.0.2.I" : "error."
             })
         }