mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-16 15:42:50 -04:00
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. |
||
|---|---|---|
| .. | ||
| hypothesis | ||
| log | ||
| vars | ||
| __init__.py | ||
| __main__.py | ||
| asyncserver.py | ||
| check.py | ||
| compat.py | ||
| instance.py | ||
| kasp.py | ||
| mark.py | ||
| name.py | ||
| query.py | ||
| rndc.py | ||
| run.py | ||
| template.py | ||
| util.py | ||