Replace climateclient with blazarclient
The climateclient namespace has been migrated to blazarclient in the python-blazarclient repo [1]. This patch follows the changes. [1] https://review.openstack.org/#/c/432953/ Change-Id: I256445789e771b374957fae6d5c07dfcbd46510f Depends-On: Ibf900f9a8a7a7bfb0b6b213545b9cbf121ce0df7 Partial-Bug: #1663460
This commit is contained in:
parent
5b808ecb58
commit
5af5f1dbb8
|
@ -24,7 +24,7 @@ import time
|
|||
import traceback
|
||||
|
||||
try:
|
||||
from climateclient import client as blazar_client
|
||||
from blazarclient import client as blazar_client
|
||||
except ImportError:
|
||||
blazar_client = None
|
||||
|
||||
|
@ -137,7 +137,7 @@ class ReservationController(wsgi.Controller):
|
|||
raise exception.NotFound(_('No Blazar URL found in service '
|
||||
'catalog.'))
|
||||
|
||||
blazar_cl = blazar_client.Client(climate_url=blazar_url,
|
||||
blazar_cl = blazar_client.Client(blazar_url=blazar_url,
|
||||
auth_token=auth_token)
|
||||
return blazar_cl
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ class BlazarDefaultReservationTestCase(extensions.BaseExtensionTestCase):
|
|||
resp_obj = wsgi.ResponseObject({'server': {'id': 'fakeId'}})
|
||||
self.rsrv_controller.create(self.req, resp_obj, body)
|
||||
|
||||
mock_module.Client.assert_called_once_with(climate_url='fake',
|
||||
mock_module.Client.assert_called_once_with(blazar_url='fake',
|
||||
auth_token='fake_token')
|
||||
|
||||
self.lease_controller.create.assert_called_once_with(
|
||||
|
@ -93,7 +93,7 @@ class BlazarDefaultReservationTestCase(extensions.BaseExtensionTestCase):
|
|||
resp_obj = wsgi.ResponseObject({'server': {'id': 'fakeId'}})
|
||||
self.rsrv_controller.create(self.req, resp_obj, body)
|
||||
|
||||
mock_module.Client.assert_called_once_with(climate_url='fake',
|
||||
mock_module.Client.assert_called_once_with(blazar_url='fake',
|
||||
auth_token='fake_token')
|
||||
|
||||
self.lease_controller.create.assert_called_once_with(
|
||||
|
|
|
@ -56,7 +56,7 @@ class BlazarReservationTestCase(extensions.BaseExtensionTestCase):
|
|||
resp_obj = wsgi.ResponseObject({'server': {'id': 'fakeId'}})
|
||||
self.controller.create(self.req, resp_obj, body)
|
||||
|
||||
mock_module.Client.assert_called_once_with(climate_url='fake',
|
||||
mock_module.Client.assert_called_once_with(blazar_url='fake',
|
||||
auth_token='fake_token')
|
||||
|
||||
self.lease_controller.create.assert_called_once_with(
|
||||
|
|
Loading…
Reference in New Issue