Browse Source

Additional test checking Zone threshold defaults to None

pull/1159/head
Matt Cholick 2 years ago
parent
commit
885126d48f
2 changed files with 12 additions and 0 deletions
  1. +6
    -0
      tests/config/zone-threshold.yaml
  2. +6
    -0
      tests/test_octodns_manager.py

+ 6
- 0
tests/config/zone-threshold.yaml View File

@ -26,3 +26,9 @@ zones:
- in
targets:
- dump
defaultthresholds.tests.:
sources:
- in
targets:
- dump

+ 6
- 0
tests/test_octodns_manager.py View File

@ -1311,6 +1311,12 @@ class TestManager(TestCase):
self.assertEqual(0.02, subzone.update_pcent_threshold)
self.assertEqual(0.01, subzone.delete_pcent_threshold)
# test default of None to ensure Provider precedence
zone_with_defaults = manager.get_zone('defaultthresholds.tests.')
self.assertIsNone(zone_with_defaults.update_pcent_threshold)
self.assertIsNone(zone_with_defaults.delete_pcent_threshold)
class TestMainThreadExecutor(TestCase):
def test_success(self):


Loading…
Cancel
Save