mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Added test for missing zone
This commit is contained in:
@@ -7,4 +7,9 @@ providers:
|
||||
dump:
|
||||
class: octodns.provider.yaml.YamlProvider
|
||||
directory: env/YAML_TMP_DIR
|
||||
zones: {}
|
||||
zones:
|
||||
unit.tests.:
|
||||
sources:
|
||||
- in
|
||||
targets:
|
||||
- dump
|
||||
|
||||
@@ -81,7 +81,9 @@ class TestManager(TestCase):
|
||||
|
||||
def test_missing_zone(self):
|
||||
with self.assertRaises(ManagerException) as ctx:
|
||||
Manager(get_config_filename('missing-zone-config.yaml')).sync()
|
||||
Manager(get_config_filename('missing-zone-config.yaml')).sync(
|
||||
['missing.zones.']
|
||||
)
|
||||
self.assertTrue('Passed zone:' in str(ctx.exception))
|
||||
|
||||
def test_missing_targets(self):
|
||||
|
||||
Reference in New Issue
Block a user