summaryrefslogtreecommitdiff
path: root/tests/test_resolver.py
Commit message (Collapse)AuthorAgeFilesLines
* Apply the resolver search list, domain, and ndots settings in the same wayBob Halley2020-07-271-2/+22
| | | | that the BIND stub resolver library does.
* more resolver override testingBob Halley2020-07-261-1/+6
|
* more minor resolver coverageBob Halley2020-07-251-4/+47
|
* more resolver coverage improvementsBob Halley2020-07-221-2/+27
|
* Make resolver use_edns() conform to its docstring; slightly improve ↵Bob Halley2020-07-221-0/+10
| | | | use_edns() logic.
* Fix Answer constructor invocations that missed an API change.Bob Halley2020-07-221-4/+2
|
* Increase branch coverage of the resolver.Bob Halley2020-07-221-29/+96
| | | | | | | 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.
* unify chaining codeBob Halley2020-07-211-2/+14
|
* Set EDNS default payload to 1232.Bob Halley2020-07-201-1/+1
|
* Fix resolver EDNS0 payload size when EDNS0 enabled by resolv.conf.Bob Halley2020-07-201-0/+1
| | | | [Issue #546]
* better test styleBob Halley2020-07-201-3/+3
|
* Add canonical_name() method to resolver.Bob Halley2020-07-201-0/+14
|
* cache statisticsBob Halley2020-07-191-0/+35
|
* Use the selectors module.Brian Wellington2020-07-171-9/+9
| | | | | | 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.
* Don't read resolv.conf in tests that don't use it.Brian Wellington2020-07-081-5/+6
|
* increase resolver coverageBob Halley2020-07-011-0/+58
|
* Use `configure=False` in tests to skip reading /etc/resolv.confLumir Balhar2020-06-251-5/+5
|
* Add more functionality to nanonameserver.Brian Wellington2020-06-231-7/+6
| | | | | | | | | | | - 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.
* make read_resolv_conf() tests work on win32 tooBob Halley2020-06-231-2/+4
|
* merge mostly redundant resolv.conf test into existing testBob Halley2020-06-231-35/+15
|
* test resolv.conf settingsBob Halley2020-06-231-0/+20
|
* improve resolver coverageBob Halley2020-06-201-0/+19
|
* try a different type for NoData test to make azure happierBob Halley2020-06-201-2/+2
|
* try a different type for NoData test to make azure happierBob Halley2020-06-201-1/+1
|
* improve e164 coverageBob Halley2020-06-191-1/+8
|
* Improve resolver coverage by:Bob Halley2020-06-161-9/+7
| | | | | | | | | 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.
* pass peer and connection type to nanoserver handle()Bob Halley2020-06-021-1/+1
|
* switch to relative import for nanonameservernanonameserverBob Halley2020-06-011-1/+1
|
* add nanonamserver, a handy testing toolBob Halley2020-05-311-4/+49
|
* test cache hit with live resolverBob Halley2020-05-291-0/+10
|
* a bit more cache coverageBob Halley2020-05-281-0/+55
|
* only do multiple I/O backend testing for live tests, as testing everything 3 ↵Bob Halley2020-05-281-67/+71
| | | | times is pointless work
* add one more live resolver test (for NXDOMAIN)Bob Halley2020-05-281-0/+9
|
* tests: resolver Nodata answersPetr Špaček2020-05-281-0/+18
|
* further tighten resolve() default settingsBob Halley2020-05-271-2/+2
|
* add some basic resolution testingBob Halley2020-05-211-0/+13
|
* move raise_on_no_error out of AnswerBob Halley2020-05-191-1/+1
|
* Allow resolver-level control over the defaulting of search (default False).Bob Halley2020-05-151-1/+17
|
* Add resolver resolve(), deprecate query().Bob Halley2020-05-151-0/+19
|
* tests for reading resolvconf optionskimbo2020-04-021-0/+15
|
* Improve assertion checking.Brian Wellington2020-03-181-27/+28
| | | | | This replaces lots of self.assertTrue() assertions with more specific assertions, such as replacing assertTrue(x == y) with assertEqual(x, y).
* only allow Resolver.nameservers to be a listkimbo2020-01-061-11/+1
|
* change nameserver to nameserverskimbo2019-12-301-4/+4
|
* added empty list nameservers assignment testkimbo2019-12-301-0/+5
|
* make sure Resolver.nameservers is a list or strkimbo2019-12-261-0/+23
| | | | | validate if assignment of Resolver.nameservers is a list, a str (in which case it will be converted to a list), or None
* TST: fix failUnlessRaises -> assertRaises deprecationThomas A Caswell2019-10-301-3/+3
| | | | failUnlessRaises was deprecated in py31
* TST: fix unittest deprecationThomas A Caswell2019-10-301-11/+11
| | | | failUnless was deprecated in py31
* Remove _compat module.Bob Halley2018-12-091-25/+6
|
* update copyrightBob Halley2018-12-011-0/+2
|
* Initial type signaturesJanus2018-07-311-6/+3
|