summaryrefslogtreecommitdiff
path: root/tests/test_resolver.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Unify PY2/3 detectionMartin2017-07-191-8/+7
| | | | | | dns._compat module contains constants PY2 and PY3 which should be used for detection of python version, to have only one method and avoid duplications
* pylint disable: keep disabled block as small as possibleMartin2017-07-151-1/+7
|
* Fix more latest pylint warnings.Bob Halley2017-05-301-1/+1
|
* bump copyrightBob Halley2017-01-091-1/+1
|
* Raise IndexError in Answer get and delete if rrset is None.Bob Halley2017-01-091-0/+20
| | | | | Thanks to mschwager for reporting this. [Issue #226].
* Merge pull request #202 from m3047/masterBob Halley2016-09-191-0/+17
|\ | | | | DWIMmmy
| * Try to shut up Travis.Fred Morris2016-09-181-1/+1
| |
| * Tests for empty answersFred Morris2016-09-171-0/+17
| |
* | Pylint: remove unused variablesMartin2016-08-311-2/+1
|/ | | | This commit removes some unused variables (except those in iterations, list comprehensions and used for unpacking)
* Pylint: make pylint happy with exceptionsMartin2016-08-031-4/+4
|