diff --git a/tests/test_octodns_provider_googlecloud.py b/tests/test_octodns_provider_googlecloud.py index 9afe3fa..4575886 100644 --- a/tests/test_octodns_provider_googlecloud.py +++ b/tests/test_octodns_provider_googlecloud.py @@ -351,12 +351,12 @@ def __init__(self, name, changes): changes.append(Delete(delete_r)) changes.append(Update(existing=update_existing_r, new=update_new_r)) + existing = Zone('unit.tests.', []) + existing.add_record(update_existing_r) + existing.add_record(delete_r) provider.apply( Plan( - existing=[update_existing_r, delete_r], - desired=desired, - changes=changes, - exists=True, + existing=existing, desired=desired, changes=changes, exists=True ) ) @@ -394,9 +394,12 @@ def __init__(self, name, changes): type(status_mock).status = "pending" with self.assertRaises(RuntimeError): + existing = Zone('unit.tests.', []) + existing.add_record(update_existing_r) + existing.add_record(delete_r) provider.apply( Plan( - existing=[update_existing_r, delete_r], + existing=existing, desired=desired, changes=changes, exists=True,