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

check for identical monitor and skip creating one if found

This commit is contained in:
Sham
2021-07-30 12:37:21 -07:00
parent a1ef420668
commit 65056fb4cd
2 changed files with 14 additions and 4 deletions

View File

@@ -1332,6 +1332,10 @@ class TestNs1ProviderDynamic(TestCase):
# This indirectly calls into _params_for_dynamic and tests the
# handling to get there
record = self.record()
# copy an existing answer from a different pool to 'lhr' so
# in order to test answer repetition across pools (monitor reuse)
record.dynamic._data()['pools']['lhr']['values'].append(
record.dynamic._data()['pools']['iad']['values'][0])
ret, _ = provider._params_for_A(record)
# Given that record has both country and region in the rules,