summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove extra whitespace.Brian Wellington2020-05-151-2/+0
|
* Improve consistency in DNSSEC code.Brian Wellington2020-05-152-6/+37
| | | | | | The make_ds method took its algorithm as a string, and the nsec3_hash method took an algorithm as an int. Change both of them to accept either, and add enums for both sets of algorithms.
* 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-152-1/+20
|
* Add more nsec3_hash() tests.Brian Wellington2020-05-111-1/+17
|
* lintBob Halley2020-05-091-1/+0
|
* remove send_https() as the send/receive split is too hard for HTTPS and it ↵Bob Halley2020-05-081-12/+0
| | | | is not adding anything over https()
* Improve TXT records in example zone.Brian Wellington2020-05-044-11/+19
| | | | | | | | | | This zone was copied from a zone file in BIND long ago. BIND contains both sample zone files and a script to generate sample zone files, but the committed files appear to have been generated by a broken version of the script. This updates the TXT records to what the script would have generated, which is far more complete.
* Add an ignore_scope option to dns.ipv6.inet_aton().Bob Halley2020-05-041-0/+17
|
* IDNA support for zones, messages, names in rdata, rrsets, and rdatasets.Bob Halley2020-05-034-0/+101
|
* Add IDNA codec support to tokenizer and dns.rdata.from_text()Bob Halley2020-05-031-0/+13
|
* finish commentBob Halley2020-05-031-1/+2
|
* Do not double-UTF-8 encode escapes in TXT-like records. [Issue #321]Bob Halley2020-05-032-2/+29
|
* fix lingering unguarded requests importsBob Halley2020-05-011-3/+4
|
* Merge pull request #460 from bwelling/remove-futureBob Halley2020-05-014-8/+0
|\ | | | | Remove "from __future__ import" statements.
| * Remove "from __future__ import" statements.Brian Wellington2020-05-014-8/+0
| | | | | | | | None of these are needed anymore.
* | also use skipUnless for tests that require IDNA2008Daniel Lenski2020-04-301-29/+31
| |
* | make DOH an extra feature (to avoid requests as hard dependency)Daniel Lenski2020-04-301-0/+2
|/
* Add alternate origin support to dns.reversename.Brian Wellington2020-04-291-0/+26
|
* Add dns.rdata.Rdata.to_generic()Brian Wellington2020-04-211-0/+13
|
* cryptography delintBob Halley2020-04-081-1/+0
|
* Use python cryptography for DNSSECSimo Sorce2020-04-071-18/+2
| | | | Signed-off-by: Simo Sorce <simo@redhat.com>
* Merge pull request #445 from kimbo/kl/resolv-conf-optionsBob Halley2020-04-031-0/+15
|\ | | | | additional resolv.conf options
| * tests for reading resolvconf optionskimbo2020-04-021-0/+15
| |
* | Merge pull request #443 from bwelling/rdata-replaceBob Halley2020-04-031-0/+17
|\ \ | |/ |/| Add dns.rdata.Rdata.replace()
| * Add dns.rdata.Rdata.replace()Brian Wellington2020-04-021-0/+17
| | | | | | | | | | | | Now that Rdata instances are immutable, there needs to be a way to make a new Rdata based on an existing one. replace() creates a clone of the current Rdata, overriding fields with the specified parameters.
* | Update Set tests.Brian Wellington2020-04-021-8/+24
|/ | | | | Add tests to cover untested functionality, and update existing tests to actually use the fact that these sets are ordered.
* python 3.5 compatibilityBob Halley2020-04-021-1/+1
|
* delintBob Halley2020-04-021-1/+1
|
* fix tests broken by immutable rdata conversion (lists became tuples)Bob Halley2020-04-023-4/+4
|
* NSEC3 hash implementation and testsFabian Hauck2020-03-211-0/+56
|
* Merge pull request #432 from bwelling/ds-sha384Bob Halley2020-03-201-0/+7
|\ | | | | Add support for SHA-384 DS records.
| * Add support for SHA-384 DS records.Brian Wellington2020-03-201-0/+7
| |
* | zone.to_text() should return a string.Brian Wellington2020-03-201-2/+2
|/ | | | | | As part of the Python 3 conversion, the result of dns.zone.to_text() changed from str to bytes. This was likely unintentional, as a method with text in its name should be returning text.
* Remove choose_relativity() from zone.from_xfr()Brian Wellington2020-03-181-0/+33
| | | | | | | | | | The comment states that relativize must be consistent between dns.query.xfr() and dns.zone.from_xfr(), and the code fails if they're not (if check_origin is True, at least). This means that the rdata is already correctly relativized (or not). This also adds a test of creating zones from xfrs, both relativized and not.
* Improve assertion checking.Brian Wellington2020-03-1818-269/+284
| | | | | This replaces lots of self.assertTrue() assertions with more specific assertions, such as replacing assertTrue(x == y) with assertEqual(x, y).
* Merge pull request #424 from bwelling/masterBob Halley2020-03-111-0/+87
|\ | | | | Add support for EdDSA DNSSEC algorithms.
| * Check for Python 3.6 in tests.Brian Wellington2020-03-111-0/+9
| |
| * Add support for EdDSA DNSSEC algorithms.Brian Wellington2020-03-111-0/+78
| |
* | delintBob Halley2020-03-111-1/+3
|/
* Use PyCryptodome for ECDSA.Brian Wellington2020-03-101-8/+0
|
* DoH cleanup.Brian Wellington2020-01-071-5/+11
|
* Merge pull request #405 from kimbo/kl/doh-improvementsBob Halley2020-01-071-0/+83
|\ | | | | DoH improvements
| * send_https() and test for itkimbo2019-12-301-0/+11
| |
| * added bootstrap address option to https()kimbo2019-12-301-0/+13
| |
| * req'd session param to https() for connection reusekimbo2019-12-301-4/+10
| |
| * cleaned up query.py and test_dohkimbo2019-12-231-13/+2
| |
| * improvements to dns.query.httpskimbo2019-12-191-0/+64
| | | | | | | | | | | | | | | | - use requests module (instead of urllib) - added option to pass in an IP address or a URL - added basic tests (for dns.query.https) TODO: af, source_port
* | only allow Resolver.nameservers to be a listkimbo2020-01-061-11/+1
| |
* | change nameserver to nameserverskimbo2019-12-301-4/+4
| |