summaryrefslogtreecommitdiff
path: root/tests/test_query.py
Commit message (Collapse)AuthorAgeFilesLines
* Use the selectors module.Brian Wellington2020-07-171-14/+0
| | | | | | 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.
* Add support for receiving UDP queries.Brian Wellington2020-07-081-0/+12
| | | | | | | | | | | | | | 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.
* avoid low-level wait tests on WindowsBob Halley2020-07-011-0/+3
|
* more query coverageBob Halley2020-06-301-0/+57
|
* Add more functionality to nanonameserver.Brian Wellington2020-06-231-11/+11
| | | | | | | | | | | - When no port is specified, pick the same port for UDP and TCP, so that TCP fallback can be tested. - Change handlers to get a single Request object instead of individual parameters. The Request object contains the message, peer, and connection_type previously passed, and also adds the local address and wire format message. Additionally, it provides convenient properties for accessing the question.
* remove debugging printsBob Halley2020-06-171-2/+0
|
* The dns.inet.AF_* portability scheme is no longer needed.Bob Halley2020-06-161-3/+3
|
* full coverage for _destination_and_source()Bob Halley2020-06-161-0/+46
|
* make skip message accurateBob Halley2020-06-161-4/+2
|
* Test AXFR with TSIG.Brian Wellington2020-06-161-0/+9
|
* Test sending a query with TSIG.Brian Wellington2020-06-161-0/+39
|
* test IPv4 and IPv6 according to availabilityBob Halley2020-06-151-66/+96
|
* add some test coverage for dns.query.xfr()Bob Halley2020-06-141-0/+220
|
* Fix leaked socket in testQueryTLSWithSocket.Brian Wellington2020-06-081-13/+13
|
* Adds sock parameters to query methods.Brian Wellington2020-06-011-0/+63
| | | | | Allow passing a socket into dns.query.{udp,tcp,tls,udp_with_fallback}, and add tests for this.
* revision of truncation handlingBob Halley2020-05-221-0/+81