1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00
Commit Graph

49 Commits

Author SHA1 Message Date
Ross McFarland
aae65594f2 Remove explicit use of six 2021-09-17 07:10:07 -07:00
Ross McFarland
8c04508a86 Implement & test Zone.copy (shallow) and utilize it in processors 2021-08-21 10:11:23 -07:00
Brian E Clow
f4caa35caa Ignoring URLFWD and adjusting test counts for other providers 2021-07-22 14:32:09 -07:00
Ross McFarland
c3f0bf677a Validate processor config sections 2021-06-23 18:49:19 -07:00
Ross McFarland
716d068196 Backwards compat for plan overrides, 100% manager coverage, singular processor module name 2021-04-27 06:45:18 -07:00
Ross McFarland
395a5c7054 Merge remote-tracking branch 'origin' into processors 2021-04-26 18:16:58 -07:00
Christian Funkhouser
55c194c203 Update tests/test_octodns_manager.py
Co-authored-by: Ross McFarland <ross@github.com>
2021-04-08 09:40:04 -04:00
Christian Funkhouser
2075550f07 Test that Manager passes fh to _PlanOutputs 2021-04-07 18:21:34 -04:00
Ross McFarland
236615fdd5 Merge branch 'master' into processors 2021-03-11 17:43:56 -08:00
Ross McFarland
5e1f653848 Merge remote-tracking branch 'origin/master' into srv_null_records 2021-02-18 07:52:47 -08:00
Mark Tearle
5d23977bbd Adjust remaining unit tests due to extra records in test zone 2021-02-15 22:46:22 +08:00
Mark Tearle
9d4bd0aaec Add support for LOC records 2021-02-09 20:41:37 +08:00
Marc 'risson' Schmitt
2b454ccc22 manager: error when an alias zone is synced without its source
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
2020-12-17 15:23:22 +01:00
Ross McFarland
a7bb6a306c Remove corresponding nbsp's from manager tests 2020-12-10 08:39:31 -08:00
Ross McFarland
e4d6084b4c POC of processors concept that can hook in to modify zones 2020-12-03 17:50:56 -08:00
Jonathan Leroy
2d4855508c Check that an alias zone source is not an alias zone 2020-11-01 23:58:40 +01:00
Jonathan Leroy
9a4812223e Add missing empty line 2020-10-31 20:19:09 +01:00
Jonathan Leroy
038ae42284 Add comments and fixes some tests 2020-10-31 20:16:26 +01:00
Jonathan Leroy
a6d8848fad Fixes linting issues 2020-10-31 14:19:43 +01:00
Jonathan Leroy
b0da090723 Add test for alias zones 2020-10-31 14:09:54 +01:00
Jonathan Leroy
4fb102e4be Fixes tests related to _populate_and_plan() 2020-10-31 09:44:06 +01:00
Jonathan Leroy
04a2d7a585 Merge branch 'master' into zones-aliases 2020-10-28 16:24:40 +01:00
Jonathan Leroy
de51e5f531 Add support for DNAME records 2020-10-26 22:18:35 +01:00
Jonathan Leroy
897a033443 Add tests for Manager.get_zones() 2020-10-21 20:02:12 +02:00
Jonathan Leroy
f2a6f870b4 Make each alias zone reference its target zone instead of listing all
aliases zones in the target zone configuration
2020-10-20 22:18:48 +02:00
Jonathan Leroy
7bf0b31367 Revert "Add support for zones aliases"
This reverts commit b926d78c5c.
2020-10-20 19:54:35 +02:00
Jonathan Leroy
2cc91ead71 Merge branch 'master' into zones-aliases 2020-10-20 19:51:56 +02:00
Guillaume Gelin
31105cc472 Implement octodns-sync --source
It can be useful to only synchronize zones that use a certain source. For
example, in a situation where some zones use a dynamic source and others don't,
you probably want to synchronize those with a dynamic source regularly, and
only synchronize the others when a change is made.

Although we only synchronize the zones that use a given source, we still want
to synchronize all sources to avoid deleting records that would live in another
source of the zone.
2020-08-27 16:16:24 +02:00
Jonathan Leroy
b926d78c5c Add support for zones aliases
This commit adds support for zones aliases. This allows to define one or
multiple zone as aliases of an existing zone without using workarounds
like simlinks and miltiple "zones" entries in the configuration file.

An alias zone is share all of its content with it parent zone, only the
name of the zone is different.

```
zones:
  example.com.:
    aliases:
      - example.net.
      - example.org.
    sources:
      - in
    targets:
      - out
```

Known issues:
- No documentation,
- Only the `octodns-sync` and `octodns-validate` commands supports
aliases zones at this time,

I added a loop in the manager init function which convert all alias
zone to "real" ones during config validation, however I'm not sure
this is the right approach. Comments welcome.
2020-08-03 00:47:22 +02:00
Ross McFarland
c25dd38d4f lenient param to populate needs to be optoinal 2020-06-24 18:37:22 -07:00
Ross McFarland
3f487197df Manager throws ManagerException rather than Exception, more robust tests 2019-10-09 15:09:37 -07:00
Ross McFarland
db8de8acb8 Fix Manager ordering assumptions 2019-10-07 08:41:28 -07:00
Ross McFarland
a9d0eef3ba Lots of text_type 2019-07-29 08:37:47 -07:00
Christian Funkhouser
98dacd2dde Add proper tests for SplitYamlProvider
The SplitYamlProvider itself now requires a directory matching the
zone name under its directory to contain all YAML files. This doesn't
actually change the intended usage at all, just how the configuration
file is laid out.

Signed-off-by: Christian Funkhouser <cfunkhouser@heroku.com>
2019-04-08 13:59:45 -04:00
Christian Funkhouser
1d9553b93a Appease the linter.
Signed-off-by: Christian Funkhouser <cfunkhouser@heroku.com>
2019-04-08 13:59:45 -04:00
Christian Funkhouser
ee133b3ac1 Fix tests
Signed-off-by: Christian Funkhouser <cfunkhouser@heroku.com>
2019-04-08 13:59:45 -04:00
Ross McFarland
303d0532c8 Implement SUPPORTS_DYNAMIC functionality, no providers 2018-12-03 14:40:43 -08:00
Ross McFarland
3d0f5aeca0 Config-based plan_output
Refactors the provider class lookup and kwarg processing so that it can be
reused for plan_output.
2017-12-02 11:40:55 -08:00
Ross McFarland
454f7f8c8f Add formal CAA support to YamlProvider 2017-11-08 06:26:18 -08:00
Ross McFarland
4b740a48ff Merge branch 'master' into master 2017-10-30 11:00:25 -07:00
Ross McFarland
ffeceb39b1 Handle Manager.dump with an empty Zone 2017-10-13 13:15:24 -07:00
Paul van Brouwershaven
11f4359099 Add support for included and excluded records
`Included` and `Excluded` can be used to filter records for one or more specific provider(s). This can be extremely useful when certain record types are not supported by a provider and you want only that provider to receive an alternative record.

See also: https://github.com/github/octodns/issues/26
2017-09-28 15:16:39 +02:00
Ross McFarland
5e4d68094f Add meta record support with provider id to zone
Support replace=True in zone.add_record
2017-06-24 17:14:48 -07:00
Ross McFarland
a69ff64ae1 Add --lenient flag to dump 2017-06-23 09:24:25 -07:00
Ross McFarland
371138dbec Fix zone-level always-dry-run functionality
Thanks @offmindby!
2017-06-08 18:34:33 -07:00
Ross McFarland
d51c2b41b8 Tests for MainThreadExecutor 2017-03-28 13:32:49 -07:00
Ross McFarland
32a7b23923 Don't use threads when max_workers=1 2017-03-28 13:26:02 -07:00
Ross McFarland
377bda4f9c Implement simplistic planning concurrency, by zone 2017-03-27 14:39:50 -07:00
Ross McFarland
7957a4c018 Initial import of OSS OctoDNS 2017-03-15 15:38:10 -07:00