]>
git.ipfire.org Git - thirdparty/dnspython.git/log
Bob Halley [Mon, 22 Jun 2020 13:49:16 +0000 (06:49 -0700)]
Merge pull request #513 from rthalley/dependabot/pip/mypy-tw-0.781
Update mypy requirement from ^0.780 to ^0.781
dependabot[bot] [Mon, 22 Jun 2020 05:44:40 +0000 (05:44 +0000)]
Update mypy requirement from ^0.780 to ^0.781
Updates the requirements on [mypy](https://github.com/python/mypy) to permit the latest version.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.780...v0.781)
Signed-off-by: dependabot[bot] <support@github.com>
Bob Halley [Sat, 20 Jun 2020 21:14:49 +0000 (14:14 -0700)]
set versioning to dev
Bob Halley [Sat, 20 Jun 2020 17:44:26 +0000 (10:44 -0700)]
add wheel
Bob Halley [Sat, 20 Jun 2020 17:40:31 +0000 (10:40 -0700)]
add twine to dev tools
Bob Halley [Sat, 20 Jun 2020 17:37:02 +0000 (10:37 -0700)]
prep rc doc
Bob Halley [Sat, 20 Jun 2020 14:38:16 +0000 (07:38 -0700)]
improve resolver coverage
Bob Halley [Sat, 20 Jun 2020 14:12:49 +0000 (07:12 -0700)]
remove differences.md as doco has fuller description
Bob Halley [Sat, 20 Jun 2020 14:10:55 +0000 (07:10 -0700)]
remove linux jobs as coverage does not fuse
Bob Halley [Sat, 20 Jun 2020 14:01:49 +0000 (07:01 -0700)]
try a different type for NoData test to make azure happier
Bob Halley [Sat, 20 Jun 2020 13:44:54 +0000 (06:44 -0700)]
try a different type for NoData test to make azure happier
Bob Halley [Sat, 20 Jun 2020 13:39:13 +0000 (06:39 -0700)]
try azure update again
Bob Halley [Sat, 20 Jun 2020 13:36:06 +0000 (06:36 -0700)]
try a much more complicated azure job
Bob Halley [Sat, 20 Jun 2020 01:17:40 +0000 (18:17 -0700)]
bind our UDP socket
Bob Halley [Fri, 19 Jun 2020 21:47:53 +0000 (14:47 -0700)]
improve TSIG coverage
Bob Halley [Fri, 19 Jun 2020 20:50:14 +0000 (13:50 -0700)]
Remove hmac_md5(), as it was added for backwards compatibility when we
switched to using sign() back in 2010.
Bob Halley [Fri, 19 Jun 2020 18:21:18 +0000 (11:21 -0700)]
improve coverage
Bob Halley [Fri, 19 Jun 2020 18:15:15 +0000 (11:15 -0700)]
add coverage
Bob Halley [Fri, 19 Jun 2020 18:15:06 +0000 (11:15 -0700)]
add comment about is-response checking for DDNS
Bob Halley [Fri, 19 Jun 2020 18:14:34 +0000 (11:14 -0700)]
improve coverage
Bob Halley [Fri, 19 Jun 2020 18:14:12 +0000 (11:14 -0700)]
improve coverage
Bob Halley [Fri, 19 Jun 2020 18:13:49 +0000 (11:13 -0700)]
we did not check label-too-long in a few text cases
Bob Halley [Fri, 19 Jun 2020 16:56:28 +0000 (09:56 -0700)]
improve e164 coverage
Bob Halley [Fri, 19 Jun 2020 16:56:13 +0000 (09:56 -0700)]
improve set coverage
Bob Halley [Fri, 19 Jun 2020 16:26:50 +0000 (09:26 -0700)]
more EDNS coverage
Bob Halley [Fri, 19 Jun 2020 16:23:52 +0000 (09:23 -0700)]
Make _cmp generic for all EDNS Options. It now compares the wire formats
of two objects of the same class.
Previously we did type-specific stuff for ECSOption, but we only
checked the padded address info, not the srclen or scopelen, so
different options could compare the same. Also, it's not clear that
there's any better semantic ordering of options than the wire format,
so we will just go for simplicity and use the generic implementation.
Bob Halley [Fri, 19 Jun 2020 16:23:16 +0000 (09:23 -0700)]
fix indentation issue that let to pointless extra checking
Bob Halley [Fri, 19 Jun 2020 14:56:39 +0000 (07:56 -0700)]
lint
Bob Halley [Fri, 19 Jun 2020 14:53:12 +0000 (07:53 -0700)]
misc rdata coverage improvements
Bob Halley [Fri, 19 Jun 2020 14:53:00 +0000 (07:53 -0700)]
more coverage improvements
Bob Halley [Fri, 19 Jun 2020 14:48:49 +0000 (07:48 -0700)]
fix cut-and-paste typo
Bob Halley [Fri, 19 Jun 2020 14:46:16 +0000 (07:46 -0700)]
Improve GPOS validity checking.
Bob Halley [Fri, 19 Jun 2020 14:16:26 +0000 (07:16 -0700)]
Check previously unchecked things in from_text(), and make from_wire() checks more precise.
Bob Halley [Fri, 19 Jun 2020 14:15:08 +0000 (07:15 -0700)]
improve async coverage
Bob Halley [Fri, 19 Jun 2020 14:14:40 +0000 (07:14 -0700)]
eliminate coverage noise
Bob Halley [Fri, 19 Jun 2020 14:14:28 +0000 (07:14 -0700)]
improve async coverage
Bob Halley [Thu, 18 Jun 2020 23:15:37 +0000 (16:15 -0700)]
add more rdata test coverage
Bob Halley [Thu, 18 Jun 2020 23:09:47 +0000 (16:09 -0700)]
Fix rdata pickling.
Coverage testing showed that while rdatas would pickle and unpickle
apparently successfully, in fact only the slots from the deepest class
in the inheritance chain would be restored. So, e.g., a restored A rdata
would have an address attribute but no rdclass or rdtype attributes,
and so things like rdata comparison would break.
This change preserves the whole set of slots, from all ancestors as
well as the object, as a dictionary.
Bob Halley [Thu, 18 Jun 2020 16:34:53 +0000 (09:34 -0700)]
validate rdata replace()
Bob Halley [Thu, 18 Jun 2020 16:11:16 +0000 (09:11 -0700)]
further improve entropy coverage
Bob Halley [Thu, 18 Jun 2020 16:07:04 +0000 (09:07 -0700)]
improve entropy coverage
Bob Halley [Thu, 18 Jun 2020 16:00:30 +0000 (09:00 -0700)]
improve query coverage
Bob Halley [Thu, 18 Jun 2020 15:55:15 +0000 (08:55 -0700)]
increase message coverage
Bob Halley [Thu, 18 Jun 2020 15:46:21 +0000 (08:46 -0700)]
more tokenizer coverage
Bob Halley [Thu, 18 Jun 2020 15:35:20 +0000 (08:35 -0700)]
more zone test coverage
Bob Halley [Thu, 18 Jun 2020 14:39:13 +0000 (07:39 -0700)]
skip getaddrinfo tests on windows as the originals fail
Bob Halley [Thu, 18 Jun 2020 14:32:02 +0000 (07:32 -0700)]
cope with windows getaddrinfo
Bob Halley [Thu, 18 Jun 2020 14:26:24 +0000 (07:26 -0700)]
add more info when equivalence test fails to see what is up on windows
Bob Halley [Thu, 18 Jun 2020 14:22:31 +0000 (07:22 -0700)]
more resolver override coverage
Bob Halley [Thu, 18 Jun 2020 14:20:50 +0000 (07:20 -0700)]
Construct socket.gaierror with an errno and a string, as doing just the
errno doesn't cause the errno field in the exception to be set, and thus
our exceptions were different and less useful than the stock ones.
Adjust gethostbyaddr() to filter addresses like the system one does.
Bob Halley [Thu, 18 Jun 2020 12:44:53 +0000 (05:44 -0700)]
Merge pull request #511 from pspacek/ds_algo_mnemonic
DS: support mnemonic format from RFC 4034 section 5.3
Petr Špaček [Thu, 18 Jun 2020 09:24:10 +0000 (11:24 +0200)]
DS: support mnemonic format from RFC 4034 section 5.3
Bob Halley [Thu, 18 Jun 2020 03:11:46 +0000 (20:11 -0700)]
Merge pull request #510 from bwelling/renderer
Simplify renderer code.
Bob Halley [Thu, 18 Jun 2020 03:06:35 +0000 (20:06 -0700)]
improve tokenizer coverage
Bob Halley [Thu, 18 Jun 2020 03:04:33 +0000 (20:04 -0700)]
Improve the comment on get_int(), as it is unsigned.
Add missing base parameter to get_uint32.
Don't copy get_int in get_uint32, just call get_int.
get_uint32 erroneously permitted
4294967296 .
remove cut-and-paste origin parameter to get_string() and get_identifier().
Brian Wellington [Thu, 18 Jun 2020 02:15:07 +0000 (19:15 -0700)]
Simplify renderer code.
Use context manager to avoid duplicating length checking in many places.
Change the code dealing with EDNS options to avoid lots of seeking by
not rendering directly into the file.
Brian Wellington [Wed, 17 Jun 2020 23:08:20 +0000 (16:08 -0700)]
Optimize wiredata __getitem__.
When getting an item (not a slice), call bytes.__getitem__ directly
rather than creating a new bytes object.
Brian Wellington [Wed, 17 Jun 2020 22:13:12 +0000 (15:13 -0700)]
Test message encoding with EDNS options.
Bob Halley [Wed, 17 Jun 2020 21:05:30 +0000 (14:05 -0700)]
make passing a socket to async routines actually work
Brian Wellington [Wed, 17 Jun 2020 20:32:27 +0000 (13:32 -0700)]
Test dns.name.__le__ and __ge__.
Bob Halley [Wed, 17 Jun 2020 20:16:38 +0000 (13:16 -0700)]
simplify TTL check when reading a zone file
Brian Wellington [Wed, 17 Jun 2020 20:07:13 +0000 (13:07 -0700)]
Fix typo.
Brian Wellington [Wed, 17 Jun 2020 19:58:59 +0000 (12:58 -0700)]
Test `dns.name.from_unicode` with escapes.
Bob Halley [Wed, 17 Jun 2020 19:40:33 +0000 (12:40 -0700)]
do not omit rdtypes on coverage summary
Bob Halley [Wed, 17 Jun 2020 19:29:37 +0000 (12:29 -0700)]
test bad class in zone
Brian Wellington [Wed, 17 Jun 2020 19:24:01 +0000 (12:24 -0700)]
Add a basic test of retrieving entropy.
Bob Halley [Wed, 17 Jun 2020 19:03:37 +0000 (12:03 -0700)]
improve coverage
Bob Halley [Wed, 17 Jun 2020 19:03:03 +0000 (12:03 -0700)]
remove unneeded exception catching from rhs setting in $GENERATE code (cut-and-paste issue)
Bob Halley [Wed, 17 Jun 2020 18:39:17 +0000 (11:39 -0700)]
Treat OSErrors during resolution as permanent failures, in line with other
stub resolvers.
Reduce default lifetime from 30 seconds to 5 seconds.
Brian Wellington [Wed, 17 Jun 2020 18:50:25 +0000 (11:50 -0700)]
Improve EDNS option test coverage.
Bob Halley [Wed, 17 Jun 2020 17:43:44 +0000 (10:43 -0700)]
some IDNA 2008 tests were not getting skipped if idna was not available
Bob Halley [Wed, 17 Jun 2020 15:00:34 +0000 (08:00 -0700)]
Now that rdata are immutable, there is no point to the validate() method, so
remove it.
Bob Halley [Wed, 17 Jun 2020 14:50:10 +0000 (07:50 -0700)]
fix sniffio-less asyncio detection on 3.6.x
Bob Halley [Wed, 17 Jun 2020 14:46:36 +0000 (07:46 -0700)]
improve async coverage
Bob Halley [Wed, 17 Jun 2020 14:45:35 +0000 (07:45 -0700)]
ignore unimportant stuff in coverage
Bob Halley [Wed, 17 Jun 2020 14:45:13 +0000 (07:45 -0700)]
remove debugging prints
Bob Halley [Wed, 17 Jun 2020 14:43:28 +0000 (07:43 -0700)]
exclude unwanted from coverage report
Bob Halley [Wed, 17 Jun 2020 02:37:01 +0000 (19:37 -0700)]
The dns.inet.AF_* portability scheme is no longer needed.
Bob Halley [Wed, 17 Jun 2020 00:30:08 +0000 (17:30 -0700)]
full coverage for _destination_and_source()
Bob Halley [Wed, 17 Jun 2020 00:20:57 +0000 (17:20 -0700)]
further test low_level_address_tuple()
Bob Halley [Tue, 16 Jun 2020 23:59:33 +0000 (16:59 -0700)]
make skip message accurate
Bob Halley [Tue, 16 Jun 2020 23:58:44 +0000 (16:58 -0700)]
avoid unneeded coverage warnings
Bob Halley [Tue, 16 Jun 2020 23:51:10 +0000 (16:51 -0700)]
Improve resolver coverage by:
Testing more stuff.
Ignoring coverage of Windows as we have no way to integrate coverage data
from windows test runs at this time.
Ignoring other not important things.
Bob Halley [Tue, 16 Jun 2020 22:54:52 +0000 (15:54 -0700)]
lint
Brian Wellington [Tue, 16 Jun 2020 22:34:12 +0000 (15:34 -0700)]
Test AXFR with TSIG.
Brian Wellington [Tue, 16 Jun 2020 22:33:34 +0000 (15:33 -0700)]
Add support for TSIG on multi-message responses.
Brian Wellington [Tue, 16 Jun 2020 22:19:29 +0000 (15:19 -0700)]
Add support for multi-message TSIG.
The underlying renderer code supported this, but it was not exposed
through message.to_wire().
Brian Wellington [Tue, 16 Jun 2020 22:13:59 +0000 (15:13 -0700)]
Fix typo.
Bob Halley [Tue, 16 Jun 2020 21:01:12 +0000 (14:01 -0700)]
Take nameservers that are not IPv4/v6 addresses or https URLs out of the
mix.
This also fixes the UnboundLocalError from [Issue #509].
Brian Wellington [Tue, 16 Jun 2020 20:42:31 +0000 (13:42 -0700)]
Test sending a query with TSIG.
Brian Wellington [Tue, 16 Jun 2020 20:42:09 +0000 (13:42 -0700)]
Add nanonameserver support for TSIG.
Brian Wellington [Tue, 16 Jun 2020 18:20:21 +0000 (11:20 -0700)]
Fix typo.
Bob Halley [Tue, 16 Jun 2020 17:20:48 +0000 (10:20 -0700)]
simplify DoH POST
Bob Halley [Tue, 16 Jun 2020 17:19:03 +0000 (10:19 -0700)]
simplify DoH GET
Bob Halley [Tue, 16 Jun 2020 17:05:51 +0000 (10:05 -0700)]
Add missing comma.
Bob Halley [Tue, 16 Jun 2020 17:05:19 +0000 (10:05 -0700)]
Add an IPv6 address for Cloudflare DoH that works.
Bob Halley [Tue, 16 Jun 2020 15:36:17 +0000 (08:36 -0700)]
use dev<N> suffix for dev versions
Bob Halley [Tue, 16 Jun 2020 15:33:12 +0000 (08:33 -0700)]
set rc1 in version
Bob Halley [Tue, 16 Jun 2020 15:21:01 +0000 (08:21 -0700)]
Fix the DoH v6 literal fix.
My first try at this did not play well with the refactoring of
_destination_and_source, as there will now be an af if source has one
and destination doesn't. We only want to make special literal URLs when
the destination is a literal.
Bob Halley [Tue, 16 Jun 2020 15:10:16 +0000 (08:10 -0700)]
lint