bind9/bin/tests
Nicki Křížek 354fd1f921 Add isctest.check.ede() helper for pytest
Add a utility function to check for EDE options present in the DNS
message. The primary benefit of this helper function is that it
handles the compatibility issues with different dnspython versions
and the actual test code doesn't have to deal with that any more.

Rather than using the convenience .extended_errors() method
introduced in dnspython 2.7.0, iterate over the options and find
EDEOption types, which is supported from 2.2.0 onwards.

To work around the issue of using dns.edns.EDECode to specify EDE codes
in our tests, create an isctest.compat.EDECode wrapper. This can be used
even with dnspython versions prior to 2.2.0 and will simply result in
no-op, since EDE isn't supported in the older dnspython anyway.

(cherry picked from commit 61b3b415d5)
2025-11-10 16:28:17 +01:00
..
startperf Reformat shell scripts with shfmt 2023-10-26 10:23:50 +02:00
system Add isctest.check.ede() helper for pytest 2025-11-10 16:28:17 +01:00
testdata/wire move all optional tests from bin/tests to bin/tests/optional 2018-03-09 14:12:47 -08:00
.gitignore Move environment variables from conf.sh to pytest 2024-05-09 17:08:08 +02:00
convert-trs-to-junit.py Use :global-test-result: when converting trs file to JUnit XML 2025-06-26 17:05:20 +02:00
Makefile.am Fix JUnit test status generator for out-of-tree system tests 2022-09-22 15:20:23 +02:00
test_client.c TLS SNI - add low level support for SNI to the networking code 2024-12-26 18:31:03 +02:00
test_server.c Remove redundant parentheses from the return statement 2024-11-19 14:26:52 +01:00
wire_test.c Finalize removal of memory debug flags size and mctx 2024-12-06 03:13:14 +00:00