summaryrefslogtreecommitdiff
path: root/tests/test_zone.py
Commit message (Collapse)AuthorAgeFilesLines
* re-run blackBob Halley2023-03-191-1/+1
|
* add $ to allow_directives if missingBob Halley2022-08-161-0/+10
|
* allow zonefile directives to be specified explicitlyBob Halley2022-08-141-0/+63
|
* Add support for more bases in $GENERATEcorubba2022-08-051-0/+46
| | | | | | | | | | | When reading a zone from a zonefile, the `$GENERATE` resolution now not only supports decimal but also octal, hexadecimal and nibbles. When using nibbles with an even width, the generated index may end with a dot, and alone is interpreted as a absolute name. This behaviour is consistent with bind, but may cause these records to be dropped by the subdomain-check in `zonefile.py:398` (see also the `h.*` labels in the testcase that are missing from the result).
* black autoformattingBob Halley2022-03-151-382/+467
|
* test versioned zone non-txn get of nonexistent setBob Halley2022-03-121-0/+13
|
* improve version _validate_name test coverageBob Halley2022-03-061-0/+7
|
* Add integrated typing to much of dnspython.Bob Halley2022-03-051-1/+7
|
* allow txn argument as suggested by @rthalleyJakob Schlyter2022-02-211-0/+9
|
* raise NoSOA if there is no SOA recordJakob Schlyter2022-02-191-1/+1
|
* implement dns.zone.Zone.get_soa()Jakob Schlyter2022-02-191-0/+12
|
* fix various typing issues (typos)Sebastian Wagner2022-01-291-1/+1
| | | | I stumbled over a few typos and then decided to fix 'em all
* Use the version's origin if the zone doesn't have one yet. [#766]absolute_origin_zone_txn_fixBob Halley2022-01-231-0/+7
|
* cname and other data check in zonefile readerBob Halley2021-12-021-9/+21
|
* First draft of CNAME and other data handling in zones.Bob Halley2021-12-021-8/+133
|
* Node find_rdataset() should set covers when creating [#730]Bob Halley2021-11-261-1/+10
|
* Add want_origin parameter to zone to_text() and to_file().Bob Halley2021-06-131-0/+28
| | | | [Issue #654]
* make `name in zone` consistent with `zone[name]`kimbo2021-02-161-0/+10
| | | | | specifically, allow name to be a str, and raise a KeyError if name cannot be converted into a dns.name.Name
* improve versioned zone coverageBob Halley2020-09-011-0/+46
|
* add some versioned zone test casesBob Halley2020-09-011-0/+25
|
* node replace_rdataset() should not permit rrsetsBob Halley2020-08-181-0/+9
|
* test cleanups and more coverageBob Halley2020-07-241-63/+84
|
* a way of doing commentscommentsBob Halley2020-07-201-2/+27
|
* more zone test coverageBob Halley2020-06-181-0/+27
|
* test bad class in zoneBob Halley2020-06-171-0/+5
|
* improve coverageBob Halley2020-06-171-0/+88
|
* some IDNA 2008 tests were not getting skipped if idna was not availableBob Halley2020-06-171-0/+3
|
* attempt to fix the last windows errorBob Halley2020-06-151-1/+1
|
* compare files in a way that avoids newlines issues on windows and gives ↵Bob Halley2020-06-151-19/+27
| | | | better error results
* print out more if file comparison failsBob Halley2020-06-151-0/+11
|
* IDNA support for zones, messages, names in rdata, rrsets, and rdatasets.Bob Halley2020-05-031-0/+27
|
* 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-181-32/+32
| | | | | This replaces lots of self.assertTrue() assertions with more specific assertions, such as replacing assertTrue(x == y) with assertEqual(x, y).
* TST: fix failUnlessRaises -> assertRaises deprecationThomas A Caswell2019-10-301-9/+9
| | | | failUnlessRaises was deprecated in py31
* TST: fix unittest deprecationThomas A Caswell2019-10-301-42/+42
| | | | failUnless was deprecated in py31
* remove the rest of the unicode string prefixesBob Halley2019-01-081-1/+1
|
* update copyrightBob Halley2018-12-011-0/+2
|
* Initial type signaturesJanus2018-07-311-73/+73
|
* Improve TTL detection when reading master zone files.Tom Lanyon2017-05-311-3/+59
| | | | | | | | | | | | | | | | | | | | This introduces the same behaviour that BIND has when it encounters implicit TTL values, namely: * The $TTL directive is preferred to set the default TTL [RFC2308]. * If no $TTL directive is seen prior to the SOA RR, the default TTL is set to the minimum TTL field of the SOA RR [RFC1033, RFC1035, RFC1912]. * If neither $TTL nor an SOA are present, use the last seen explicit TTL on an RR or raise a SyntaxError if no explicit TTLs have been seen. Previously, when neither $TTL nor SOA were present, the TTL for an RR without an explicit TTL would be set to 0 which is known to be a somewhat dangerous value and shouldn't be encouraged as a default. One test seems to rely on this default TTL=0 behaviour whilst testing something seemingly unrelated (RR starting with whitespace), so that test has been updated to match this new expectation. Fixes #254.
* Test creates file in wrong locationAvram Lubkin2016-10-041-1/+1
| | | test_zone.ZoneTestCase.testToFileFilename fails with OSError: [Errno 2] No such file or directory
* Merge pull request #197 from bastiak/pylintBob Halley2016-09-181-15/+12
|\ | | | | Pylint
| * Pylint: remove unused variablesMartin2016-08-311-15/+12
| | | | | | | | This commit removes some unused variables (except those in iterations, list comprehensions and used for unpacking)
* | Add zone.to_file testsMartin2016-08-311-0/+53
|/ | | | Test covers both binary and textual mode for files and streams
* Pylint: tests: Fix whitespace errorsMartin2016-07-021-1/+1
|
* Pylint: tests: fix singleton comparisonMartin2016-07-021-5/+5
|
* Fix typosJakub Wilk2016-05-261-1/+1
|
* Allow an origin of None to be specified when constructing aBob Halley2016-05-111-0/+3
| | | | | Zone object. [issue #153]
* Allow zone origin to be specified as a string.Bob Halley2016-05-081-0/+11
|
* python3 supportArthur Gautier2016-04-211-26/+37
| | | | Signed-off-by: Arthur Gautier <baloo@gandi.net>