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

Handle the MX special case around content

This commit is contained in:
Ross McFarland
2018-10-15 20:18:14 -07:00
parent db8e291d53
commit 0c33d3acac
2 changed files with 32 additions and 10 deletions

View File

@@ -536,6 +536,20 @@ class TestCloudflareProvider(TestCase):
'type': 'CNAME'
}, list(contents)[0])
def test_gen_key(self):
provider = CloudflareProvider('test', 'email', 'token')
self.assertEqual('10 foo.bar.com.', provider._gen_key({
'content': 'foo.bar.com.',
'priority': 10,
'type': 'MX',
}))
self.assertEqual('foo.bar.com.', provider._gen_key({
'content': 'foo.bar.com.',
'type': 'CNAME',
}))
def test_cdn(self):
provider = CloudflareProvider('test', 'email', 'token', True)