presslabs / zinc

Route 53 zone manager.
https://www.presslabs.com/code/zinc/
Other
42 stars 2 forks source link

use CREATE not UPSERT when creating a new record fixes #231 #233

Closed rciorba closed 7 years ago

rciorba commented 7 years ago

Using Action='CREATE' when creating a record ensures we don't accidentally update and existing record.

Updates fake boto to raise an exception when attempting to CREATE an already existing record.

Also makes sure fake boto returns records in the same order as route53. See the documentation for list_resoure_record_sets

Adds test helper to utils to run meld on 2 pretty printed data structures, since I got tired of manually running it and copy pasting.