Rename invalid domain name to be RFC compliant.
http://tools.ietf.org/html/rfc6761 and http://tools.ietf.org/html/rfc2606 define invalid domain names to be used in contexts such as this. It's good to be compliant with RFCs. Change-Id: Ibb7f9ee12c0c4331f8a33470def74c3a136ef6d9
This commit is contained in:
@@ -25,7 +25,7 @@ from glanceclient.v2 import shell as test_shell
|
||||
|
||||
class LegacyShellV1Test(testtools.TestCase):
|
||||
def test_do_image_list(self):
|
||||
gc = client.Client('1', 'http://no.where')
|
||||
gc = client.Client('1', 'http://is.invalid')
|
||||
|
||||
class Fake():
|
||||
def __init__(self):
|
||||
@@ -39,7 +39,7 @@ class LegacyShellV1Test(testtools.TestCase):
|
||||
actual = test_shell.do_image_list(gc, Fake())
|
||||
|
||||
def test_do_image_show(self):
|
||||
gc = client.Client('1', 'http://no.where')
|
||||
gc = client.Client('1', 'http://is.invalid')
|
||||
|
||||
class Fake():
|
||||
def __init__(self):
|
||||
@@ -70,7 +70,7 @@ class LegacyShellV1Test(testtools.TestCase):
|
||||
id = 'pass'
|
||||
file = 'test'
|
||||
|
||||
gc = client.Client('1', 'http://no.where')
|
||||
gc = client.Client('1', 'http://is.invalid')
|
||||
with mock.patch.object(gc.images, 'data') as mocked_data:
|
||||
mocked_data.return_value = 'test_passed'
|
||||
test_shell.do_image_download(gc, Fake())
|
||||
@@ -80,7 +80,7 @@ class LegacyShellV1Test(testtools.TestCase):
|
||||
id = 'pass'
|
||||
file = 'test'
|
||||
|
||||
gc = client.Client('1', 'http://no.where')
|
||||
gc = client.Client('1', 'http://is.invalid')
|
||||
with mock.patch.object(gc.images, 'delete') as mocked_delete:
|
||||
mocked_delete.return_value = 0
|
||||
test_shell.do_image_delete(gc, Fake())
|
||||
|
||||
Reference in New Issue
Block a user