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

MX RFC1035 - priority -> preference & value -> exchange

This commit is contained in:
Ross McFarland
2017-06-23 13:04:38 -07:00
parent 3ca64c4e08
commit 1340aee8a9
14 changed files with 118 additions and 88 deletions

View File

@@ -52,11 +52,11 @@ class TestRoute53Provider(TestCase):
'Goodbye World?']}),
('', {'ttl': 64, 'type': 'MX',
'values': [{
'priority': 10,
'value': 'smtp-1.unit.tests.',
'preference': 10,
'exchange': 'smtp-1.unit.tests.',
}, {
'priority': 20,
'value': 'smtp-2.unit.tests.',
'preference': 20,
'exchange': 'smtp-2.unit.tests.',
}]}),
('naptr', {'ttl': 65, 'type': 'NAPTR',
'value': {
@@ -1262,8 +1262,8 @@ class TestRoute53Records(TestCase):
d = _Route53Record(None, Record.new(existing, '',
{'ttl': 42, 'type': 'MX',
'value': {
'priority': 10,
'value': 'foo.bar.'}}),
'preference': 10,
'exchange': 'foo.bar.'}}),
False)
self.assertEquals(d, d)