Fix wrong Tld name

Reference link about a right/wrong Tld name:
- https://github.com/openstack/designate/blob/master/designate/tests/test_schema/test_format.py#L318
- https://github.com/openstack/designate/blob/master/designate/schema/format.py#L34

Change-Id: I98ab55987894ef56684518ec074db8714763b574
This commit is contained in:
Dai Dang Van 2017-06-06 08:29:47 +07:00
parent 014756c520
commit de4466fa2d
2 changed files with 4 additions and 4 deletions

View File

@ -85,7 +85,7 @@ class ApiV2TldsTest(ApiV2TestCase):
# We should start with 0 tlds
self.assertEqual(0, len(response.json['tlds']))
data = [self.create_tld(name='tld%s.' % i) for i in 'abcdefghijklmn']
data = [self.create_tld(name='tld%s' % i) for i in 'abcdefghijklmn']
self._assert_paging(data, '/tlds', key='tlds')
def test_get_tld(self):

View File

@ -297,10 +297,10 @@ class CentralServiceTest(CentralTestCase):
def test_update_tld(self):
# Create a tld
tld = self.create_tld(name='org.')
tld = self.create_tld(name='org')
# Update the Object
tld.name = 'net.'
tld.name = 'net'
# Perform the update
self.central_service.update_tld(self.admin_context, tld)
@ -309,7 +309,7 @@ class CentralServiceTest(CentralTestCase):
tld = self.central_service.get_tld(self.admin_context, tld.id)
# Ensure the tld was updated correctly
self.assertEqual('net.', tld.name)
self.assertEqual('net', tld.name)
def test_delete_tld(self):
# Create a tld