Commit Graph

847 Commits

Author SHA1 Message Date
Ross McFarland 4a847cb38c More test cases for configured_sub_zones 2022-08-11 12:25:37 -07:00
Ross McFarland 18ee70ddb5 Fix issue when subzone is a non-dotted endswith for zone 2022-08-11 09:10:56 -07:00
Ross McFarland af010121ea Do away with zone_tree, not a tree and unnecessary now 2022-08-11 08:58:40 -07:00
Ross McFarland 33794f3796 Fix a bug in Zone.add_record subzone handling when name ends with non-dotted subzone name 2022-08-11 08:40:32 -07:00
Ross McFarland 6a1b86af6f Rework configured_sub_zones and add tests specifically for it 2022-08-11 07:50:32 -07:00
Ross McFarland 6e5c7a8b70 Add failing tests of subzone handling 2022-08-11 06:18:05 -07:00
Ross McFarland 78c53de22c Merge remote-tracking branch 'origin/master' into idna 2022-08-09 07:58:07 -07:00
Ross McFarland 02e07f4209 Merge remote-tracking branch 'origin/master' into dump-support-output-provider 2022-07-22 16:06:51 -07:00
Adam Smith 2a56d9b26e AxfrSource and ZoneFileSource: support multi-value PTR records 2022-07-22 12:50:24 -04:00
Ross McFarland e116d26eec Implement black formatting 2022-07-04 12:27:39 -07:00
Sachi King 04be906c3c Add test to validate non-dotted subdomain zones are vaild
This confirms that in addition to the recently added support for dotted
subdomains that subdomains that are not dotted are supported.  From
RFC1034 Section 3.5 this would be a <subdomain> that contains a single
<label> without <subdomain> recurring.
2022-06-27 10:56:20 +10:00
Ross McFarland 5c1a1b9621 Merge remote-tracking branch 'origin/master' into idna 2022-06-26 16:36:17 -04:00
Ross McFarland 08523cd4ba Functionally complete (I think) IDNA encode/decode support 2022-06-26 16:35:47 -04:00
Sachi King e299ceced2 Prepare tests with failing "managed subzone" error
The is not a zone between delegated.subzone.unit.tests. and unit.tests.,
however we get a delegated subzone error.  This modifies the tests to
succeed with the added record, however the tests fail as it incorrectly
throws the managed subzone error.

Change the name of delegated.subzone, and the tests will pass cleanly.
2022-06-23 19:22:15 +10:00
Kian-Meng Ang 04b7bf0ac2 Fix typos 2022-05-29 13:16:01 +08:00
Ross McFarland 044d8561ed Add idna encode/decode helpers 2022-05-20 09:13:38 -07:00
Aquifoliales 8b2bfa5dea SSHFP support for Source AXFR/Zonefile 2022-05-18 14:43:12 +02:00
Aquifoliales 2401a7318c Fixed testing, TLSA record ready. 2022-05-10 15:56:33 +02:00
Aquifoliales 3cdefc5058 Adaption for Linting 2022-05-10 14:58:35 +02:00
Aquifoliales 084d537c94 Fixed testing for TLSA record type. 2022-05-10 09:50:57 +02:00
Ross McFarland 0d606e0728 dump output_provider testing 2022-04-14 12:50:51 -07:00
Ross McFarland 17c294042f Implement a sketch of --output-provider support for dump 2022-04-14 10:19:33 -07:00
Ross McFarland 66958f7c21 Manager._try_version with 3.7 noop (for now) 2022-03-28 13:33:32 -07:00
Ross McFarland d714f623b8 Merge branch 'master' into log-version 2022-03-27 11:56:33 -07:00
Ross McFarland 633aef5845 Manager prints provider, processor, and plan_output versions for non-core modules when available 2022-03-25 20:03:42 -07:00
Ross McFarland 5827e23d22 Simplify Record.register_type. Values?Mixin public 2022-03-18 19:05:00 -07:00
Ross McFarland ea5000e191 Real testing of register_type 2022-03-16 12:26:29 -07:00
Ross McFarland 7f98d9dfca Base of Record type registration 2022-03-16 09:58:44 -07:00
Ross McFarland cdcaef8f2b Order changes: deletes, creates, updates 2022-03-04 14:18:23 -08:00
Ross McFarland e3edae8466 Non-configured root NS when supported is always a warning 2022-02-17 13:24:34 -08:00
Ross McFarland 0544e9ed7d More thorough testing of root ns cases and associated improvements 2022-02-17 13:00:28 -08:00
Ross McFarland 02ee7518fa Rework root NS logic to ignore when unconfigured, more testing 2022-02-17 08:50:42 -08:00
Ross McFarland 14fc137788 Use Zone.root_ns to avoid lookping/searching 2022-02-16 15:46:46 -08:00
Ross McFarland 02296652ca WIP: Backing out a more test churn now that YamlProvider has SUPPORTS_ROOT_NS flag 2022-02-16 15:23:55 -08:00
Ross McFarland adb01a982c WIP: Backing out a lot of test churn now that YamlProvider has SUPPORTS_ROOT_NS flag 2022-02-16 15:00:21 -08:00
Ross McFarland f43833e9bb Make YamlProvider.SUPPORTS_ROOT_NS configurable, default True
This will result in less churn in tests for root NS support and allow us
to enable/disable things easily as needed.
2022-02-16 14:38:10 -08:00
Ross McFarland 9454f622f9 Merge remote-tracking branch 'origin/master' into root-ns-support 2022-02-16 14:24:17 -08:00
Ross McFarland 38b51fb456 Rework unsafe bits, add RootNsChange as a new type of unsafe plan 2022-02-16 14:24:10 -08:00
Ross McFarland 40820f351e Implement and test Zone.root_ns helper property 2022-02-16 14:24:05 -08:00
Ross McFarland 2564e4aebe Fix handling of null MX records and add test for behavior 2022-02-15 07:53:39 -08:00
Ross McFarland 51d4b1ba7a Few more root ns test cases 2022-02-14 10:29:44 -08:00
Ross McFarland 728ab2af89 _process_desired_zone after populate, test/enforce order 2022-02-12 12:27:51 -08:00
Ross McFarland 5215930109 Always require a root NS in desired, sketch out SUPPORTS_ROOT_NS tests 2022-02-10 14:51:01 -08:00
Ross McFarland 08f98a5e65 Revert "Remove _process_existing_zone as it's not currently needed"
This reverts commit f1fd63205e.
2022-02-10 13:50:37 -08:00
Ross McFarland f1fd63205e Remove _process_existing_zone as it's not currently needed 2022-02-10 11:58:48 -08:00
Ross McFarland 3bcb6c8cec Add Provider._process_existing_zone to mirror _process_desired_zone 2022-02-08 13:46:04 -08:00
Ross McFarland 33a10eada4 Base support for managing root NS records
* Zone object no longer treats them special, some tests needed adjusting
  b/c of this, some provider's tests may also need adjusting, though
  they should not plan changes since they won't (yet) have
  SUPPORTS_ROOT_NS
* _process_desired_zone filters and warns when not supported
* YamlProvider supports them
* TinyDnsBaseSource supports them
2022-02-08 10:26:49 -08:00
Ross McFarland e0a5f4d746 Rework _AggregateTarget to dynamically handle SUPPORTS 2022-02-08 09:31:42 -08:00
Ross McFarland 99da4abd9f Include a CNAMe test for url with path too 2022-02-04 15:50:25 -08:00
Ross McFarland f2b3505d43 Falidate record fields that should hold FQDNs w/tests 2022-02-04 15:04:18 -08:00