143 Commits

Author SHA1 Message Date
Ross McFarland 9f58b8e482 Record.octodns formalized, Record._octodns deprecated
Both point to the same thing via properties
2024-02-10 20:14:08 -05:00
Ross McFarland b148a4c716 Add test_records_have_rdata_methods, implement them for URLFWD 2024-01-23 13:45:42 -08:00
Ross McFarland c04a320cfd Treat value/values interchangably when configuring records
- All of the `if data isn't a list turn it into one in the value type
  validates are no longer needed, they'll always be passed a list now`
- Special case to handle PTR/target values since it previously was
  single value and is now values

See README for more information
2024-01-15 16:02:35 -08:00
Ross McFarland 3beab65e8b Add Record.values not a single string validation 2024-01-11 09:43:58 -08:00
Ross McFarland 523a188e1d explicit test for values and value 2023-12-01 10:46:58 -08:00
Ross McFarland cb09b590e7 ValueMixin._data always includes 'value' 2023-11-29 14:21:14 -08:00
Ross McFarland 1a5c9a2c5e Flip ValuesMixin._values logic to handle/have key in all cases 2023-11-29 14:03:22 -08:00
Ross McFarland 6f6cb79854 Fix bug with Record.copy when values is an empty list [] 2023-11-29 13:56:48 -08:00
Ross McFarland 65e87d0a46 Fixed Record.data, now includes the octodns special section data 2023-11-13 09:00:05 -08:00
Ross McFarland e9cdacdd13 Include octodns special section in record __repr__ 2023-11-10 16:01:14 -08:00
Ross McFarland bca8db6c8f parse_rdata_text supports unquoting things (powerdns) 2023-09-25 12:59:51 -07:00
Ross McFarland 76e330a7c3 Add source parameter to Record.from_rrs 2023-09-25 12:26:59 -07:00
Ross McFarland 857d5e2a61 Record's carry context, Zone exceptions make use of it to help with error messages 2023-08-18 20:24:26 -07:00
Ross McFarland ebe9374405 Clean up context cases, full test coverage 2023-07-28 18:52:32 -07:00
Ross McFarland 59a8958226 Record.parse_rdata_texts, TinyDns support for arbitrary record types 2023-07-01 09:18:53 -07:00
Ross McFarland cfa7abaee5 Validations to ensure Record.name and Zone.name have no whitespace 2023-05-19 09:57:56 -07:00
Ross McFarland 6be0a8133a isort import formatting 2023-01-22 13:54:19 -08:00
Ross McFarland 90c0402b00 break record tests into individual files 2023-01-02 23:08:18 -05:00
Ross McFarland 9205e32392 Finish breaking up octodns.record 2023-01-02 14:58:03 -05:00
Ross McFarland 965ee566bb Pull out rest of record into specific files 2023-01-02 14:33:44 -05:00
Ross McFarland be7c3d279e WIP breakup of octodns.record file 2023-01-02 10:12:59 -05:00
Ross McFarland 8ba5335333 Add support for DsRecord type 2023-01-01 21:15:11 -05:00
Ross McFarland e6652c4262 Independant tests for Record.from_rrs 2022-10-10 13:47:07 -07:00
Ross McFarland 4a6fae34b3 PtrValue should no longer be using _TargetValue now that it acceps multiple values 2022-10-01 19:08:24 -07:00
Ross McFarland dbd40fb20a Merge in main, remove parse_rdata_text usage from validate & cstor 2022-09-23 15:09:34 -07:00
Ross McFarland 2c5d8ad101 Flip ttl and type return order 2022-09-22 20:29:08 -07:00
Ross McFarland 7f0cfb08a2 Implement Record.rrs 2022-09-22 20:26:25 -07:00
Ross McFarland cea1c65305 Remove pprints and add some comments/doc 2022-09-22 18:58:16 -07:00
Ross McFarland ace2fdf4e1 Make sure _ChunkedValue.parse_rdata_text escapes ; 2022-09-22 10:26:21 -07:00
Ross McFarland 0228e6822e Implmement Record.from_rrs and plug it together with parse_rdata_text 2022-09-22 10:13:19 -07:00
Ross McFarland c6ab68e331 Merge branch 'main' into records-rfc-test 2022-09-21 09:37:00 -07:00
Ross McFarland d04ad0fd15 Merge branch 'main' into idna-values 2022-09-21 09:25:38 -07:00
Ross McFarland 23673f1a1f Merge branch 'main' into value-object 2022-09-20 12:32:46 -07:00
Ross McFarland d7880c084d Remove from __futures__ bits, all are now manditory 2022-09-15 14:10:21 -07:00
Ross McFarland faf277ca01 IDNA support for Record values holding fqdns 2022-09-14 13:56:27 -07:00
Ross McFarland 870a5c3c3e Merge remote-tracking branch 'origin/main' into value-object 2022-09-14 10:35:56 -07:00
Ross McFarland b4792707f8 Merge remote-tracking branch 'origin/main' into idna-internally 2022-09-12 14:56:01 -07:00
Ross McFarland 1cbcfbf1d3 Urlfwd isn't a RFC type so it shouldn't have rr text support 2022-09-08 10:56:03 -07:00
Ross McFarland e6944ff5ae finish up rr text Record coverage (hopefully) 2022-09-08 10:37:26 -07:00
Ross McFarland e33cf55e7d Another round of Record rr_text handling 2022-09-08 09:24:38 -07:00
Ross McFarland 0eb4e66634 Naptr to/from rr text 2022-09-07 15:24:17 -07:00
Ross McFarland 9caaa5259a Implement to/from rr text for MxValue as a POC 2022-09-07 15:02:38 -07:00
Ross McFarland 9da2c15328 full testing for missing value properties 2022-09-06 15:30:00 -07:00
Ross McFarland b402a43665 All record value(s) are first-class objects, as compatible as possible with previous str/dict 2022-09-06 14:55:24 -07:00
Ross McFarland fa4225b625 Fix lots of errant '...' '...' string joins 2022-09-06 12:47:47 -07:00
Ross McFarland 2e3d325f71 YamlProvider.SUPPORTS dynamically returns the list of registered types 2022-08-27 15:53:56 -07:00
Ross McFarland 16e0bd0675 Testing of Zone and Record name/decoded_name handling 2022-08-20 11:55:19 -07:00
Ross McFarland 55b9701837 IdnaError exception handling, ensure validation happens on encoded names 2022-08-20 09:40:54 -07:00
Ross McFarland e116d26eec Implement black formatting 2022-07-04 12:27:39 -07:00
Kian-Meng Ang 04b7bf0ac2 Fix typos 2022-05-29 13:16:01 +08:00