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

Consistently order changes :-/

Many providers make their modifications in the order that changes comes. In
python3 this causes things to be inconsistently ordered. That mostly works, but
could result in hidenbugs (e.g. Route53Provider's batching could be completely
different based on the order it sees changes.) Sorting changes consistently
is a good thing and it shouldn't hurt situations where providers are already
doing their own ordering. All-in-all more consistent is better and we have to be
explicit with python 3.
This commit is contained in:
Ross McFarland
2019-10-07 09:17:48 -07:00
parent bfa1fadde9
commit 7958233fcc
9 changed files with 129 additions and 62 deletions

View File

@@ -313,7 +313,7 @@ class TestCloudflareProvider(TestCase):
'dns_records/fc12ab34cd5611334422ab3322997653'),
call('DELETE', '/zones/ff12ab34cd5611334422ab3322997650/'
'dns_records/fc12ab34cd5611334422ab3322997654')
], any_order=True)
])
def test_update_add_swap(self):
provider = CloudflareProvider('test', 'email', 'token')