Skip to content

Commit

Permalink
WIP future interface
Browse files Browse the repository at this point in the history
  • Loading branch information
oikarinen committed Feb 3, 2025
1 parent 468bf9a commit cc23158
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/test_octodns_provider_cloudflare.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from octodns.idna import idna_encode
from octodns.provider import SupportsException
from octodns.provider.base import Plan
from octodns.provider.base import Plan as _Plan
from octodns.provider.yaml import YamlProvider
from octodns.record import Create, Delete, Record, Update
from octodns.zone import Zone
Expand Down Expand Up @@ -2910,3 +2910,12 @@ def test_process_desired_zone(self):
msg = str(ctx.exception)
self.assertTrue('subber.unit.tests.' in msg)
self.assertTrue('coresponding NS record' in msg)


# temporarily override Plan to add meta attribute, until octodns dependency is updated
# with https://github.com/octodns/octodns/pull/1236
class Plan(_Plan):

def __init__(self, existing, desired, changes, exists, meta=None):
super().__init__(existing, desired, changes, exists)
self.meta = meta if meta else {}

0 comments on commit cc23158

Please sign in to comment.