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

pick first PTR value instead of erroring out

This commit is contained in:
Viranch Mehta
2021-08-16 16:39:23 -07:00
parent 73ad7000ca
commit 6e9ce3ac3c
6 changed files with 29 additions and 16 deletions

View File

@@ -2755,16 +2755,6 @@ class TestRecordValidation(TestCase):
self.assertEquals(['PTR value "foo.bar" missing trailing .'],
ctx.exception.reasons)
# multi-value requesting single-value
with self.assertRaises(AttributeError) as ctx:
Record.new(self.zone, '', {
'type': 'PTR',
'ttl': 600,
'values': ['foo.com.', 'bar.net.'],
}).value
self.assertEquals("Multi-value PTR record has no attribute 'value'",
text_type(ctx.exception))
def test_SSHFP(self):
# doesn't blow up
Record.new(self.zone, '', {