]> git.ipfire.org Git - thirdparty/dnspython.git/log
thirdparty/dnspython.git
5 years agoexpose set_rcode in Message 562/head
Nick Hall [Wed, 29 Jul 2020 22:48:42 +0000 (23:48 +0100)] 
expose set_rcode in Message

5 years agothe abstract wire parse method for Rdata is now from_wire_parser()
Bob Halley [Fri, 31 Jul 2020 14:36:48 +0000 (07:36 -0700)] 
the abstract wire parse method for Rdata is now from_wire_parser()

5 years agoallow pytest 6
Bob Halley [Thu, 30 Jul 2020 16:25:27 +0000 (09:25 -0700)] 
allow pytest 6

5 years agoWhen validating a signature, derelativize before doing any label computations.
Bob Halley [Wed, 29 Jul 2020 01:40:36 +0000 (18:40 -0700)] 
When validating a signature, derelativize before doing any label computations.

Raise an error if the number of labels in the signature is longer than the
number of labels in the owner name.  (This is just to give a better error
as the validation would fail anyway.)

5 years agomore coverage
Bob Halley [Tue, 28 Jul 2020 16:47:49 +0000 (09:47 -0700)] 
more coverage

5 years agoRaise NoPreviousName if a text message tries to refer to a previous name but there...
Bob Halley [Tue, 28 Jul 2020 16:47:39 +0000 (09:47 -0700)] 
Raise NoPreviousName if a text message tries to refer to a previous name but there is none.

5 years agomore message coverage
Bob Halley [Tue, 28 Jul 2020 14:40:06 +0000 (07:40 -0700)] 
more message coverage

5 years agoReturn the message in question_only mode. [#556]
Bob Halley [Tue, 28 Jul 2020 14:39:50 +0000 (07:39 -0700)] 
Return the message in question_only mode. [#556]

5 years agoMerge pull request #553 from rthalley/wrap
Bob Halley [Tue, 28 Jul 2020 14:01:00 +0000 (07:01 -0700)] 
Merge pull request #553 from rthalley/wrap

Wrap exceptions from rdata from_text() and from_wire().

5 years agoApply the resolver search list, domain, and ndots settings in the same way
Bob Halley [Tue, 28 Jul 2020 00:19:11 +0000 (17:19 -0700)] 
Apply the resolver search list, domain, and ndots settings in the same way
that the BIND stub resolver library does.

5 years agoAdd missing lifetime parameter to dns.asyncresolver.resolve() [#555]
Bob Halley [Mon, 27 Jul 2020 21:24:18 +0000 (14:24 -0700)] 
Add missing lifetime parameter to dns.asyncresolver.resolve() [#555]

5 years agoWrap exceptions from rdata from_text() and from_wire(). 553/head
Bob Halley [Mon, 27 Jul 2020 00:48:14 +0000 (17:48 -0700)] 
Wrap exceptions from rdata from_text() and from_wire().

5 years agoincrease TXT coverage
Bob Halley [Sun, 26 Jul 2020 21:12:01 +0000 (14:12 -0700)] 
increase TXT coverage

5 years agoincrease rcode coverage
Bob Halley [Sun, 26 Jul 2020 20:59:08 +0000 (13:59 -0700)] 
increase rcode coverage

5 years agoremove test that can never be true
Bob Halley [Sun, 26 Jul 2020 20:50:34 +0000 (13:50 -0700)] 
remove test that can never be true

5 years agomore resolver override testing
Bob Halley [Sun, 26 Jul 2020 20:22:33 +0000 (13:22 -0700)] 
more resolver override testing

5 years agoexercise entropy stirring
Bob Halley [Sun, 26 Jul 2020 18:09:13 +0000 (11:09 -0700)] 
exercise entropy stirring

5 years agoexclude unpractical-to-test AttributeError
Bob Halley [Sun, 26 Jul 2020 18:03:19 +0000 (11:03 -0700)] 
exclude unpractical-to-test AttributeError

5 years agoincrease EDNS coverage
Bob Halley [Sun, 26 Jul 2020 17:57:47 +0000 (10:57 -0700)] 
increase EDNS coverage

5 years agostill more dnssec coverage
Bob Halley [Sun, 26 Jul 2020 17:43:17 +0000 (10:43 -0700)] 
still more dnssec coverage

5 years agomore dnssec coverage
Bob Halley [Sun, 26 Jul 2020 17:05:32 +0000 (10:05 -0700)] 
more dnssec coverage

5 years agoimprove dnssec coverage
Bob Halley [Sun, 26 Jul 2020 15:30:58 +0000 (08:30 -0700)] 
improve dnssec coverage

5 years agomore easy coverage gains
Bob Halley [Sat, 25 Jul 2020 20:06:21 +0000 (13:06 -0700)] 
more easy coverage gains

5 years agoRemove checks already done by dns.dnssec.algorithm_from_text().
Bob Halley [Sat, 25 Jul 2020 19:46:35 +0000 (12:46 -0700)] 
Remove checks already done by dns.dnssec.algorithm_from_text().

5 years agomore message coverage
Bob Halley [Sat, 25 Jul 2020 14:18:52 +0000 (07:18 -0700)] 
more message coverage

5 years agoeven on errors where we tolerate no question, check question if present
Bob Halley [Sat, 25 Jul 2020 13:29:08 +0000 (06:29 -0700)] 
even on errors where we tolerate no question, check question if present

5 years agomore minor resolver coverage
Bob Halley [Sat, 25 Jul 2020 13:19:07 +0000 (06:19 -0700)] 
more minor resolver coverage

5 years agomore reversename coverage
Bob Halley [Sat, 25 Jul 2020 12:54:54 +0000 (05:54 -0700)] 
more reversename coverage

5 years agoBring rdataset to full coverage.
Bob Halley [Sat, 25 Jul 2020 02:17:28 +0000 (19:17 -0700)] 
Bring rdataset to full coverage.

5 years agoutil coverage
Bob Halley [Sat, 25 Jul 2020 01:54:56 +0000 (18:54 -0700)] 
util coverage

5 years agotest cleanups and more coverage
Bob Halley [Sat, 25 Jul 2020 01:10:13 +0000 (18:10 -0700)] 
test cleanups and more coverage

5 years agoto_text() always returns a str, so no need to check if it is not a str
Bob Halley [Sat, 25 Jul 2020 01:10:01 +0000 (18:10 -0700)] 
to_text() always returns a str, so no need to check if it is not a str

5 years agobring rdata.py to full coverage
Bob Halley [Fri, 24 Jul 2020 15:09:16 +0000 (08:09 -0700)] 
bring rdata.py to full coverage

5 years agoignore coverage on abstract methods
Bob Halley [Fri, 24 Jul 2020 15:08:29 +0000 (08:08 -0700)] 
ignore coverage on abstract methods

5 years agoHave only one one top-level section for What's New.
Bob Halley [Fri, 24 Jul 2020 02:33:37 +0000 (19:33 -0700)] 
Have only one one top-level section for What's New.

5 years agotest style improvements
Bob Halley [Fri, 24 Jul 2020 02:26:47 +0000 (19:26 -0700)] 
test style improvements

5 years agoAllow an escaped newline in a quoted string.
Bob Halley [Fri, 24 Jul 2020 02:21:16 +0000 (19:21 -0700)] 
Allow an escaped newline in a quoted string.

5 years agomore tokenizer coverage improvements
Bob Halley [Fri, 24 Jul 2020 02:20:33 +0000 (19:20 -0700)] 
more tokenizer coverage improvements

5 years agomore tokenizer test cleanups
Bob Halley [Thu, 23 Jul 2020 16:34:14 +0000 (09:34 -0700)] 
more tokenizer test cleanups

5 years agomore tokenizer coverage
Bob Halley [Thu, 23 Jul 2020 15:48:02 +0000 (08:48 -0700)] 
more tokenizer coverage

5 years agoAdd no cover for abstract method.
Bob Halley [Thu, 23 Jul 2020 14:17:21 +0000 (07:17 -0700)] 
Add no cover for abstract method.

5 years agoAdd serial branch coverage; remove duplicated test.
Bob Halley [Thu, 23 Jul 2020 14:12:20 +0000 (07:12 -0700)] 
Add serial branch coverage; remove duplicated test.

5 years agocover compression table too big branch
Bob Halley [Thu, 23 Jul 2020 14:00:05 +0000 (07:00 -0700)] 
cover compression table too big branch

5 years agoImprove name coverage slightly by testing the uts_46 branch in 2008 decode.
Bob Halley [Thu, 23 Jul 2020 13:33:27 +0000 (06:33 -0700)] 
Improve name coverage slightly by testing the uts_46 branch in 2008 decode.
I'm not sure how useful in practice this is, as we don't offer a codec
configuration default for it, but I'm not sure you'd never do it, and the
existing code was in the wrong order.

5 years agoadd coverage for a v6 branch case
Bob Halley [Thu, 23 Jul 2020 02:03:50 +0000 (19:03 -0700)] 
add coverage for a v6 branch case

5 years agoAdjust no cover pragmas to better reflect what the Azure pipeline hits/misses.
Bob Halley [Wed, 22 Jul 2020 15:53:30 +0000 (08:53 -0700)] 
Adjust no cover pragmas to better reflect what the Azure pipeline hits/misses.

5 years agomore resolver coverage improvements
Bob Halley [Wed, 22 Jul 2020 15:52:37 +0000 (08:52 -0700)] 
more resolver coverage improvements

5 years agoMake resolver use_edns() conform to its docstring; slightly improve use_edns() logic.
Bob Halley [Wed, 22 Jul 2020 15:27:27 +0000 (08:27 -0700)] 
Make resolver use_edns() conform to its docstring; slightly improve use_edns() logic.

5 years agoFix Answer constructor invocations that missed an API change.
Bob Halley [Wed, 22 Jul 2020 14:27:17 +0000 (07:27 -0700)] 
Fix Answer constructor invocations that missed an API change.

5 years agoIncrease branch coverage of the resolver.
Bob Halley [Wed, 22 Jul 2020 14:25:07 +0000 (07:25 -0700)] 
Increase branch coverage of the resolver.

Speed up test resolver by around 6 seconds by mocking the clock.

Improve the cleaning test to verify that it really was cleaning that
removed the entry, and not get detecting the expiration.

5 years agoMerge pull request #550 from rthalley/resolve_chaining
Bob Halley [Wed, 22 Jul 2020 01:20:02 +0000 (18:20 -0700)] 
Merge pull request #550 from rthalley/resolve_chaining

Unify Chaining Code

5 years agoUse min() for min_ttl computations. 550/head
Bob Halley [Tue, 21 Jul 2020 23:01:32 +0000 (16:01 -0700)] 
Use min() for min_ttl computations.

5 years agofix exception docstrings
Bob Halley [Tue, 21 Jul 2020 18:23:54 +0000 (11:23 -0700)] 
fix exception docstrings

5 years agoset min ttl to max_ttl instead of special case -1
Bob Halley [Tue, 21 Jul 2020 17:40:51 +0000 (10:40 -0700)] 
set min ttl to max_ttl instead of special case -1

5 years agoIncrease LOC coverage.
Bob Halley [Tue, 21 Jul 2020 17:21:29 +0000 (10:21 -0700)] 
Increase LOC coverage.

5 years agoturn on branch coverage
Bob Halley [Tue, 21 Jul 2020 17:21:20 +0000 (10:21 -0700)] 
turn on branch coverage

5 years agounify chaining code
Bob Halley [Tue, 21 Jul 2020 14:32:27 +0000 (07:32 -0700)] 
unify chaining code

5 years agoMerge pull request #548 from rthalley/dependabot/pip/cryptography-gte-2.6-and-lt-4.0
Bob Halley [Tue, 21 Jul 2020 12:27:18 +0000 (05:27 -0700)] 
Merge pull request #548 from rthalley/dependabot/pip/cryptography-gte-2.6-and-lt-4.0

Update cryptography requirement from ^2.6 to >=2.6,<4.0

5 years agoUpdate cryptography requirement from ^2.6 to >=2.6,<4.0 548/head
dependabot[bot] [Tue, 21 Jul 2020 05:33:33 +0000 (05:33 +0000)] 
Update cryptography requirement from ^2.6 to >=2.6,<4.0

Updates the requirements on [cryptography](https://github.com/pyca/cryptography) to permit the latest version.
- [Release notes](https://github.com/pyca/cryptography/releases)
- [Changelog](https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pyca/cryptography/compare/2.6...3.0)

Signed-off-by: dependabot[bot] <support@github.com>
5 years agoUpdate with what's new in 2.1.0.
Bob Halley [Tue, 21 Jul 2020 02:52:59 +0000 (19:52 -0700)] 
Update with what's new in 2.1.0.

5 years agoSet EDNS default payload to 1232.
Bob Halley [Tue, 21 Jul 2020 02:52:20 +0000 (19:52 -0700)] 
Set EDNS default payload to 1232.

5 years agoFix resolver EDNS0 payload size when EDNS0 enabled by resolv.conf.
Bob Halley [Tue, 21 Jul 2020 02:23:30 +0000 (19:23 -0700)] 
Fix resolver EDNS0 payload size when EDNS0 enabled by resolv.conf.
[Issue #546]

5 years agoMerge pull request #543 from rthalley/comments
Bob Halley [Tue, 21 Jul 2020 01:37:23 +0000 (18:37 -0700)] 
Merge pull request #543 from rthalley/comments

A way of doing comments

5 years agoa way of doing comments 543/head
Bob Halley [Sat, 18 Jul 2020 20:07:04 +0000 (13:07 -0700)] 
a way of doing comments

5 years agoRemove duplicates in the LOC sample data.
Brian Wellington [Mon, 20 Jul 2020 19:42:59 +0000 (12:42 -0700)] 
Remove duplicates in the LOC sample data.

Some of these records were duplicates, which isn't all that useful for
testing.  Update some from the correct BIND sample files, and fix
others to improve coverage testing.

5 years agoMerge pull request #542 from rthalley/canonical_name
Bob Halley [Mon, 20 Jul 2020 13:28:14 +0000 (06:28 -0700)] 
Merge pull request #542 from rthalley/canonical_name

Canonical name

5 years agoAdd canonical_name() to async resolver too. 542/head
Bob Halley [Mon, 20 Jul 2020 13:12:32 +0000 (06:12 -0700)] 
Add canonical_name() to async resolver too.

5 years agoRemove unneeded str conversion; fix comment typo.
Bob Halley [Mon, 20 Jul 2020 13:12:19 +0000 (06:12 -0700)] 
Remove unneeded str conversion; fix comment typo.

5 years agobetter test style
Bob Halley [Mon, 20 Jul 2020 13:11:54 +0000 (06:11 -0700)] 
better test style

5 years agoAdd canonical_name() method to resolver.
Bob Halley [Sat, 18 Jul 2020 14:00:28 +0000 (07:00 -0700)] 
Add canonical_name() method to resolver.

5 years agoMerge pull request #544 from rthalley/cache_stats
Bob Halley [Mon, 20 Jul 2020 12:15:40 +0000 (05:15 -0700)] 
Merge pull request #544 from rthalley/cache_stats

Cache statistics

5 years agolint
Bob Halley [Sun, 19 Jul 2020 14:32:05 +0000 (07:32 -0700)] 
lint

5 years agorename statistics class; add documentation 544/head
Bob Halley [Sun, 19 Jul 2020 14:26:13 +0000 (07:26 -0700)] 
rename statistics class; add documentation

5 years agocache statistics
Bob Halley [Sun, 19 Jul 2020 14:20:41 +0000 (07:20 -0700)] 
cache statistics

5 years agoRemove unneeded to_text/from_text in NXDOMAIN.canonical_name.
Bob Halley [Sat, 18 Jul 2020 13:23:20 +0000 (06:23 -0700)] 
Remove unneeded to_text/from_text in NXDOMAIN.canonical_name.

5 years agoMerge pull request #540 from bwelling/edns-option-registration
Bob Halley [Sat, 18 Jul 2020 00:09:42 +0000 (17:09 -0700)] 
Merge pull request #540 from bwelling/edns-option-registration

Add dns.edns.register_type().

5 years agoAdd documentation. 540/head
Brian Wellington [Sat, 18 Jul 2020 00:04:30 +0000 (17:04 -0700)] 
Add documentation.

5 years agoAdd dns.edns.register_type().
Brian Wellington [Sat, 18 Jul 2020 00:01:32 +0000 (17:01 -0700)] 
Add dns.edns.register_type().

This allows an application to register a custom EDNS option type.

5 years agoMerge pull request #539 from bwelling/blocking
Bob Halley [Fri, 17 Jul 2020 23:57:51 +0000 (16:57 -0700)] 
Merge pull request #539 from bwelling/blocking

Changes to blocking model.

5 years agoDisable coverage for BlockingIOError on udp send. 539/head
Brian Wellington [Fri, 17 Jul 2020 23:52:11 +0000 (16:52 -0700)] 
Disable coverage for BlockingIOError on udp send.

5 years agoChanges to blocking model.
Brian Wellington [Fri, 17 Jul 2020 23:37:53 +0000 (16:37 -0700)] 
Changes to blocking model.

Before this change, the synchronous code would check sockets for
readability or writability before doing nonblocking read or write.
This changes them to attempt the read or write first, and then block
if the operation could not complete.

This also removes the no-longer-needed getpeername() call in tcp(),
which was needed to deal with the case where an unconnected socket was
passed in; waiting for writability would block rather than immediately
return an error.  By attempting the write first, we get the error
immediately.

5 years agoMerge pull request #538 from bwelling/selectors
Bob Halley [Fri, 17 Jul 2020 23:08:11 +0000 (16:08 -0700)] 
Merge pull request #538 from bwelling/selectors

Use the selectors module.

5 years agoUse the selectors module. 538/head
Brian Wellington [Fri, 17 Jul 2020 22:46:04 +0000 (15:46 -0700)] 
Use the selectors module.

Previously, there was code to either use select.select or select.poll,
depending on OS.  This changes it to use the selectors module, using
either SelectSelector or PollSelector, but sharing code otherwise.

5 years agoMerge pull request #537 from bwelling/edns-cleanup
Bob Halley [Fri, 17 Jul 2020 22:35:18 +0000 (15:35 -0700)] 
Merge pull request #537 from bwelling/edns-cleanup

Minor cleanups to EDNS code.

5 years agoMinor cleanups to EDNS code. 537/head
Brian Wellington [Fri, 17 Jul 2020 18:34:29 +0000 (11:34 -0700)] 
Minor cleanups to EDNS code.

When the Message object was changed to store an OPT record, the changes
to use_edns() left a lot of cruft.

Reduce some code duplication in make_query().

5 years agoMerge pull request #536 from ngaya-ll/patch-1
Bob Halley [Fri, 17 Jul 2020 13:43:21 +0000 (06:43 -0700)] 
Merge pull request #536 from ngaya-ll/patch-1

Define additional return types in name.pyi

5 years agoupdate version post-release
Bob Halley [Fri, 17 Jul 2020 13:40:27 +0000 (06:40 -0700)] 
update version post-release

5 years agoDefine additional return types in name.pyi 536/head
Nick Gaya [Thu, 16 Jul 2020 21:13:08 +0000 (14:13 -0700)] 
Define additional return types in name.pyi

5 years ago2.0.0 versioning v2.0.0
Bob Halley [Thu, 16 Jul 2020 14:30:11 +0000 (07:30 -0700)] 
2.0.0 versioning

5 years agoAdd DoH JSON example.
Bob Halley [Mon, 13 Jul 2020 13:31:24 +0000 (06:31 -0700)] 
Add DoH JSON example.

5 years agomake executable
Bob Halley [Fri, 10 Jul 2020 17:31:49 +0000 (10:31 -0700)] 
make executable

5 years agoadd ECS example
Bob Halley [Fri, 10 Jul 2020 17:31:41 +0000 (10:31 -0700)] 
add ECS example

5 years agoFix _wordbreak() to always return a str.
Brian Wellington [Thu, 9 Jul 2020 23:51:26 +0000 (16:51 -0700)] 
Fix _wordbreak() to always return a str.

5 years agoGeneralize the word breaking code.
Brian Wellington [Thu, 9 Jul 2020 17:59:12 +0000 (10:59 -0700)] 
Generalize the word breaking code.

Refactor common code from _base64ify and _hexify, and also add support
for _hexify to skip word breaks.

5 years agoMake dns.rdata._base64ify(..., 0) work.
Brian Wellington [Thu, 9 Jul 2020 16:52:05 +0000 (09:52 -0700)] 
Make dns.rdata._base64ify(..., 0) work.

In some cases, the caller absolutely doesn't want word breaks.  This
shouldn't be the case for any normal DNS record, but is for records that
don't have well-defined text formats, like TSIG and TKEY.  Allow them to
pass 0 (or None), to indicate that no word breaks should be added.

Previously, passing either 0 or None resulted in an exception, as the
value was used directly as the step in a slice.

5 years agoMerge pull request #533 from bwelling/receive_queries
Bob Halley [Wed, 8 Jul 2020 22:47:54 +0000 (15:47 -0700)] 
Merge pull request #533 from bwelling/receive_queries

Receive queries

5 years agoapply patch codecov rules
Bob Halley [Wed, 8 Jul 2020 22:30:02 +0000 (15:30 -0700)] 
apply patch codecov rules

5 years agoAdd coverage for TCP/TLS async getsockname. 533/head
Brian Wellington [Wed, 8 Jul 2020 22:29:18 +0000 (15:29 -0700)] 
Add coverage for TCP/TLS async getsockname.

5 years agoAdd support for receiving UDP queries.
Brian Wellington [Wed, 8 Jul 2020 22:11:19 +0000 (15:11 -0700)] 
Add support for receiving UDP queries.

The existing receive_udp() methods are only usable for receiving
responses, as they require an expected destination and check that the
message is from that destination.

This change makes the expected destination (and hence the check)
optional, and returns the address that the message was received from (in
the sync case, this is only done if no destination is provided, for
backwards compatibility).

New tests are added, which required adding generic getsockname() support
to the async backends.

5 years agoDon't read resolv.conf in tests that don't use it.
Brian Wellington [Wed, 8 Jul 2020 20:14:14 +0000 (13:14 -0700)] 
Don't read resolv.conf in tests that don't use it.