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:
Feodor Tersin 2015-09-01 11:35:57 +03:00
parent 2fa10cd8d5
commit 2a69f13f37
1 changed files with 1 additions and 1 deletions

View File

@ -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