@@ -16,13 +16,14 @@ Skip the tests unless both resolvers return DDR SVCB records.
Upstream-Status: Pending
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
- tests/test_ddr.py | 27 +++++++++++++++++++++++++--
+ tests/test_ddr.py | 27 +++++++++++++++++++++++++--
1 file changed, 25 insertions(+), 2 deletions(-)
+diff --git a/tests/test_ddr.py b/tests/test_ddr.py
--- a/tests/test_ddr.py
+++ b/tests/test_ddr.py
-@@ -6,13 +6,36 @@
-
+@@ -8,12 +8,35 @@
+ import dns._ddr
import dns.asyncbackend
import dns.asyncresolver
+import dns.message
@@ -30,6 +31,7 @@ Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+import dns.query
+import dns.rdatatype
import dns.resolver
+ import dns.rrset
import tests.util
@@ -53,13 +55,19 @@ Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
+ return True
+
+
+ def _svcb_nameserver_kinds(svcb_text):
+ rrset = dns.rrset.from_text("_dns.resolver.arpa.", 7200, "IN", "SVCB", svcb_text)
+ answer = types.SimpleNamespace(nameserver="192.0.2.1", rrset=rrset)
+@@ -64,7 +87,7 @@
+
+
@pytest.mark.skipif(
- not tests.util.is_internet_reachable(), reason="Internet not reachable"
+ not _ddr_available(), reason="Internet not reachable or DDR not available"
)
@tests.util.retry_on_timeout
def test_basic_ddr_sync():
-@@ -26,7 +49,7 @@
+@@ -78,7 +101,7 @@
@pytest.mark.skipif(
similarity index 85%
rename from meta-python/recipes-devtools/python/python3-dnspython_2.8.0.bb
rename to meta-python/recipes-devtools/python/python3-dnspython_2.9.2.bb
@@ -3,11 +3,11 @@ HOMEPAGE = "https://www.dnspython.org/"
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://LICENSE;md5=5af50906b5929837f667dfe31052bd34"
-SRC_URI[sha256sum] = "181d3c6996452cb1189c4046c61599b84a5a86e099562ffde77d26984ff26d0f"
+SRC_URI[sha256sum] = "8d4d39a513e649d634004ce4d39ade2352efcea472a0247535a5c2d18a9d7ba9"
CVE_PRODUCT = "dnspython"
-inherit pypi python_hatchling ptest
+inherit pypi python_uv_build ptest
SRC_URI += " \
file://run-ptest \
@@ -16,6 +16,7 @@ SRC_URI += " \
"
RDEPENDS:${PN}-ptest += " \
+ python3-idna \
python3-pytest \
python3-unittest-automake-output \
"
Upstream moved from hatchling to uv_build; inherit python_uv_build. Refresh the DDR test skip patch. The zone tests need the idna module for IDNA 2008; add python3-idna to the ptest RDEPENDS. Changes: - Requires Python 3.11+ (2.9.0); httpx2 replaces httpx for HTTPS TCP connections; DNSSEC gains ML-DSA-44. - Security (no CVE IDs; GHSA-45c3-73f7-pv4m): name decompression chain limited to 16 (CPU DoS); crafted WKS record in a zone file could exhaust memory/CPU (2.9.2); $GENERATE width capped at 127. - Security (2.9.1): DNSSEC rejects revoked DNSKEY use and mismatched RRSIG type/class; strict ECDSA/DSA signature lengths; resolver uses a random query id each time; negative TTL without SOA capped at 300. - Security (2.9.1): asyncquery.quic() now verifies the server hostname; XFR responses are checked with is_response(); from_xfr() ignores out-of-zone records; TSIG checked on DoH/DoQ replies. - Stricter rdata parsing (SVCB/HTTPS, NSEC3, NID/L64, TLSA, SSHFP, LOC, TTL); escape control characters in to_unicode/EDNS text output. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com> --- ...R-tests-when-the-resolvers-do-not-answe.patch | 16 ++++++++++++---- ...ython_2.8.0.bb => python3-dnspython_2.9.2.bb} | 5 +++-- 2 files changed, 15 insertions(+), 6 deletions(-) rename meta-python/recipes-devtools/python/{python3-dnspython_2.8.0.bb => python3-dnspython_2.9.2.bb} (85%)