From: Miod Vallat Date: Thu, 18 Dec 2025 09:26:18 +0000 (+0100) Subject: Add more createReverse/createReverse6 error tests. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4885a81f0f6f4e6f250222c3ea118adcda88dba;p=thirdparty%2Fpdns.git Add more createReverse/createReverse6 error tests. Signed-off-by: Miod Vallat (cherry picked from commit d6502a4004875e32d4d8233b00634598f3b5a8ec) --- diff --git a/regression-tests.auth-py/test_LuaRecords.py b/regression-tests.auth-py/test_LuaRecords.py index c59e639708..c85fe13423 100644 --- a/regression-tests.auth-py/test_LuaRecords.py +++ b/regression-tests.auth-py/test_LuaRecords.py @@ -1091,7 +1091,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", @@ -1102,7 +1104,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." }) }