mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Validations to ensure Record.name and Zone.name have no whitespace
This commit is contained in:
@@ -186,6 +186,11 @@ class TestZone(TestCase):
|
||||
Zone('not.allowed', [])
|
||||
self.assertTrue('missing ending dot' in str(ctx.exception))
|
||||
|
||||
def test_whitespace(self):
|
||||
with self.assertRaises(Exception) as ctx:
|
||||
Zone('space not allowed.', [])
|
||||
self.assertTrue('whitespace not allowed' in str(ctx.exception))
|
||||
|
||||
def test_sub_zones(self):
|
||||
|
||||
# NS for exactly the sub is allowed
|
||||
|
||||
Reference in New Issue
Block a user