Wildcard records

Edited pattern matching to allow wildcard records.

Change-Id: I25b542cd3ae165723ddd017d572ec3b827df28db
Closes-bug: 1479459wq
This commit is contained in:
mimi8890 2015-07-29 21:14:49 +00:00 committed by Kiall Mac Innes
parent 9fa07c5798
commit bd272d8ff4
2 changed files with 4 additions and 4 deletions

View File

@ -88,7 +88,7 @@ class RecordSet(base.DictObjectMixin, base.PersistentObjectMixin,
'schema': {
'type': 'string',
'description': 'Zone name',
'format': 'domainname',
'format': 'hostname',
'maxLength': 255,
},
'immutable': True,

View File

@ -6,7 +6,7 @@
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
@ -216,10 +216,10 @@ class SchemaFormatTest(TestCase):
]
for domainname in valid_domainnames:
self.assertTrue(format.is_domainname(domainname))
self.assertTrue(format.is_domainname(domainname), domainname)
for domainname in invalid_domainnames:
self.assertFalse(format.is_domainname(domainname))
self.assertFalse(format.is_domainname(domainname), domainname)
def test_is_srv_hostname(self):
valid_hostnames = [