Viranch Mehta
8d95d05f5f
Bump upper limit on weights
2021-10-12 13:04:26 -07:00
Viranch Mehta
e3f76e562e
Add tests for full coverage
2021-09-27 19:42:51 -07:00
Viranch Mehta
787ce7ccc8
Add the default status in tests to make them pass
2021-09-27 18:31:38 -07:00
Ross McFarland
08c9925458
Merge branch 'master' into record-copy-octodns
2021-09-21 16:04:49 -07:00
Viranch Mehta
7d7a1361b2
Retain octodns settings on record copy
2021-09-21 02:47:59 -07:00
Ross McFarland
aae65594f2
Remove explicit use of six
2021-09-17 07:10:07 -07:00
Ross McFarland
9156bdaea0
f-strings for tests pass 1
2021-09-16 16:16:01 -07:00
Ross McFarland
074de66988
Normalize IP addresses
2021-08-19 18:18:07 -07:00
Viranch Mehta
6e9ce3ac3c
pick first PTR value instead of erroring out
2021-08-16 16:39:23 -07:00
Viranch Mehta
49bff426b7
Multi-value PTR records
2021-08-12 21:43:01 -07:00
Brian E Clow
2a6480bc05
Adding URLFWD record testing
2021-07-22 14:32:09 -07:00
Sham
53608cbcf9
Merge branch 'octodns:master' into sham/issue-710
2021-06-10 00:26:30 -07:00
Ross McFarland
abef3202a0
Merge branch 'master' into azuredns-dynamic
2021-05-17 17:26:29 -07:00
Ross McFarland
e1d262a301
Add a validation requiring single value weight=1
2021-05-17 17:06:40 -07:00
Viranch Mehta
9b5c8be01e
optimize by not creating traffic manager for single-value pools
...
If single-value pools have a weight defined, it will be lost by this
optimization. Next time octodns-sync is run, it will show an update for
setting the weight on remote. To overcome this, this commit includes a
change to Record object that ignores the weight in single-value pools.
2021-05-12 10:03:34 -07:00
Mark Tearle
9d4bd0aaec
Add support for LOC records
2021-02-09 20:41:37 +08:00
Peter Dave Hello
b7ed4aa57f
Improve ALIAS, CNAME, DNAME & PTR record FQDN validation
...
Use fqdn package to help verify if the record value is really valid.
The original behavior will treat value like `_.` or `.` be a valid
record, which is strange, and the real world may not have those use
cases at all.
The RFC documents are pretty long, as I didn't read them all or enough
to tell should it be valid or not by the spec, so I opened issue #612 to
discuss this case and got a positive response from the main maintainer
to have the change.
Close #628
2020-11-22 21:10:47 +08:00
Guillaume Gelin
9c20d0015b
Fix name length validation
...
Closes #626
2020-11-16 15:35:57 +01:00
Ross McFarland
7958a6e1d1
Merge remote-tracking branch 'origin/master' into alias-root-only
2020-11-02 13:47:23 -08:00
Ross McFarland
19798e3acf
Only allow ALIAS on APEX
2020-11-02 07:26:07 -08:00
Jonathan Leroy
a2aa98377d
Add tests for Record.copy()
2020-10-31 10:57:14 +01:00
Jonathan Leroy
eec4c4f81c
Remove support for dynamic DNAME records as no provider currently
...
support them
2020-10-27 20:31:57 +01:00
Jonathan Leroy
de51e5f531
Add support for DNAME records
2020-10-26 22:18:35 +01:00
Justin B Newman
427b8a1a06
Add support for wildcard SRV records, as shown in RFC 2782
2020-07-20 12:48:47 -05:00
Lance Hudson
e477f9f888
Add the ability to mark a zone as lenient
2020-06-11 20:11:12 -04:00
Ross McFarland
827b44daba
Add TCP health check support to Record
2020-05-08 07:50:02 -07:00
Ross McFarland
54699e05ce
dynamic validation tweak, allow reuse of pool if 2nd occur is a default
2020-04-02 10:51:42 -07:00
Ross McFarland
d35c136858
Warn about unused pools, ones not referenced by a rule
2020-03-20 13:32:37 -07:00
Ross McFarland
aa58631dcd
Validate dynamic rules do not reuse pools
2020-03-20 13:15:14 -07:00
Ross McFarland
9e948aa4c8
Validate Record name & fqdn length
2019-10-18 10:36:14 -07:00
Ross McFarland
c82e94792e
RackspaceProvider python3, value types hashing
2019-10-07 07:47:43 -07:00
Ross McFarland
f252aa3b98
Merge remote-tracking branch 'origin/master' into python3-start
2019-10-05 07:20:47 -07:00
Ross McFarland
da09d9baaf
Modernize object cmp methods
2019-07-29 08:45:49 -07:00
Ross McFarland
a9d0eef3ba
Lots of text_type
2019-07-29 08:37:47 -07:00
Kitten King
daa6fecc9b
Fix Typos
2019-07-20 06:31:05 +00:00
Ross McFarland
003e8651ce
Drop dynamic record value weight to 0-16
...
That's all Dyn supports and it's cleaner to match it than to scale dyn since
we'd lose precision we can't get back during populate.
2019-07-16 06:14:45 -07:00
Peter Dave Hello
68580ac25b
Normalize CNAME/ALIAS/PTR value to lower-case
2019-04-17 23:43:01 +08:00
Peter Dave Hello
e0a8a619d6
Normalize MX exchange to lower-case, fix #322
2019-04-04 22:45:34 +08:00
Ross McFarland
d4c4c479c4
Ensure that dynamic and geo can't coexist
2018-12-19 10:56:53 -08:00
Ross McFarland
ad04cefd88
More robust __eq__ on _Dynamic objects
2018-12-19 10:56:03 -08:00
Ross McFarland
60911917b4
Implement Dync populate dynamic, flesh out testing for all but dyn
2018-12-14 11:33:50 -08:00
Ross McFarland
388e9a67e0
Hook up new GeoCodes validation to _DynamicMixin
2018-12-10 13:04:25 -08:00
Ross McFarland
a767a5cb25
Implement pool-level fallbacks and validations
2018-12-07 14:29:05 -08:00
Ross McFarland
ccd9038a38
Impliment Dynamic rule geo validation
2018-12-05 16:42:38 -08:00
Ross McFarland
e16648ab1f
Progress towards fully fleshed out pools & rules
2018-12-05 16:28:41 -08:00
Ross McFarland
b80348c2c7
Add __eq__, __ne__, and __repr__ to Dynamic objects and test
2018-12-03 16:46:18 -08:00
Ross McFarland
446f66f562
Implement _DynamicMixin's value objects, unit test them
2018-12-03 15:51:30 -08:00
Ross McFarland
70c35aac26
WIP implementation of dyanmic pools & rules validation
2018-12-03 14:28:30 -08:00
Ross McFarland
c9b373f0ae
Further clean up/division of labor and tests
2018-11-30 08:32:55 -08:00
Ross McFarland
2829862ea5
Major refactoring of record validation to better support (planned) complex/dynamic record types
2018-11-29 15:15:12 -08:00