Fix mock glanceclient initialization
glanceclient 1.0.0 requires not empty endpoint url part before the version part. Change-Id: I14763f840d12b817026c94d9127b0b0351d7f7b1
This commit is contained in:
parent
2fa10cd8d5
commit
2a69f13f37
|
@ -102,7 +102,7 @@ class MockOSMixin(object):
|
|||
|
||||
def mock_glance(self):
|
||||
glance_patcher = mock.patch('glanceclient.client.Client')
|
||||
glance = mock.create_autospec(glanceclient.Client(endpoint='/v1'))
|
||||
glance = mock.create_autospec(glanceclient.Client(endpoint='fake/v1'))
|
||||
glance_patcher.start().return_value = glance
|
||||
self.addCleanup(glance_patcher.stop)
|
||||
return glance
|
||||
|
|
Loading…
Reference in New Issue