Browse Source

Alter: Existing tests.

pull/264/head
Matt 7 years ago
parent
commit
18f29f1c6b
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      tests/test_octodns_provider_cloudflare.py

+ 5
- 0
tests/test_octodns_provider_cloudflare.py View File

@ -294,6 +294,7 @@ class TestCloudflareProvider(TestCase):
'content': '3.2.3.4', 'content': '3.2.3.4',
'type': 'A', 'type': 'A',
'name': 'ttl.unit.tests', 'name': 'ttl.unit.tests',
'proxied': False,
'ttl': 300 'ttl': 300
}), }),
call('DELETE', '/zones/ff12ab34cd5611334422ab3322997650/' call('DELETE', '/zones/ff12ab34cd5611334422ab3322997650/'
@ -386,6 +387,7 @@ class TestCloudflareProvider(TestCase):
'content': '4.4.4.4', 'content': '4.4.4.4',
'type': 'A', 'type': 'A',
'name': 'a.unit.tests', 'name': 'a.unit.tests',
'proxied': False,
'ttl': 300 'ttl': 300
}), }),
call('PUT', '/zones/42/dns_records/' call('PUT', '/zones/42/dns_records/'
@ -393,6 +395,7 @@ class TestCloudflareProvider(TestCase):
'content': '2.2.2.2', 'content': '2.2.2.2',
'type': 'A', 'type': 'A',
'name': 'a.unit.tests', 'name': 'a.unit.tests',
'proxied': False,
'ttl': 300 'ttl': 300
}), }),
call('PUT', '/zones/42/dns_records/' call('PUT', '/zones/42/dns_records/'
@ -400,6 +403,7 @@ class TestCloudflareProvider(TestCase):
'content': '3.3.3.3', 'content': '3.3.3.3',
'type': 'A', 'type': 'A',
'name': 'a.unit.tests', 'name': 'a.unit.tests',
'proxied': False,
'ttl': 300 'ttl': 300
}), }),
]) ])
@ -532,6 +536,7 @@ class TestCloudflareProvider(TestCase):
self.assertEquals({ self.assertEquals({
'content': 'www.unit.tests.', 'content': 'www.unit.tests.',
'name': 'unit.tests', 'name': 'unit.tests',
'proxied': False,
'ttl': 300, 'ttl': 300,
'type': 'CNAME' 'type': 'CNAME'
}, list(contents)[0]) }, list(contents)[0])


Loading…
Cancel
Save