diff --git a/tests/test_octodns_record.py b/tests/test_octodns_record.py index 2a60c7f..b01d91a 100644 --- a/tests/test_octodns_record.py +++ b/tests/test_octodns_record.py @@ -2291,6 +2291,16 @@ class TestRecordValidation(TestCase): self.assertEqual(['CNAME value "https://google.com" is not a valid ' 'FQDN'], ctx.exception.reasons) + # doesn't allow urls with paths + with self.assertRaises(ValidationError) as ctx: + Record.new(self.zone, 'www', { + 'type': 'CNAME', + 'ttl': 600, + 'value': 'https://google.com/a/b/c', + }) + self.assertEqual(['CNAME value "https://google.com/a/b/c" is not a ' + 'valid FQDN'], ctx.exception.reasons) + # doesn't allow paths with self.assertRaises(ValidationError) as ctx: Record.new(self.zone, 'www', {