use rpc from neutron-lib
We recently removed nenutron.common.rpc [1] as the rpc module lives in neutron-lib now. This project was missed because I didn't find neutron.common.rpc as an import. This patch switches rpc uses over to neutron-lib. [1] https://review.openstack.org/#/c/634790/ Change-Id: I40a4bdf03684a6e133b8dc28a0663a4f29bfb0af
This commit is contained in:
parent
c561e8940a
commit
f2b1590feb
|
@ -327,7 +327,7 @@ class BaseIPsecDeviceDriver(base.BaseTestCase):
|
|||
vpnservice=FAKE_VPN_SERVICE):
|
||||
super(BaseIPsecDeviceDriver, self).setUp()
|
||||
for klass in [
|
||||
'neutron.common.rpc.Connection',
|
||||
'neutron_lib.rpc.Connection',
|
||||
'oslo_service.loopingcall.FixedIntervalLoopingCall'
|
||||
]:
|
||||
mock.patch(klass).start()
|
||||
|
|
|
@ -67,7 +67,7 @@ class TestValidatorSelection(base.BaseTestCase):
|
|||
mock.patch.object(st_db.ServiceTypeManager,
|
||||
'get_service_providers').start())
|
||||
self.service_providers.return_value = vpnaas_provider
|
||||
mock.patch('neutron.common.rpc.Connection').start()
|
||||
mock.patch('neutron_lib.rpc.Connection').start()
|
||||
stm = st_db.ServiceTypeManager()
|
||||
stm.get_provider_names_by_resource_ids = mock.Mock(
|
||||
return_value={})
|
||||
|
@ -87,7 +87,7 @@ class TestValidatorSelection(base.BaseTestCase):
|
|||
class TestIPsecDriver(base.BaseTestCase):
|
||||
def setUp(self):
|
||||
super(TestIPsecDriver, self).setUp()
|
||||
mock.patch('neutron.common.rpc.Connection').start()
|
||||
mock.patch('neutron_lib.rpc.Connection').start()
|
||||
|
||||
l3_agent = mock.Mock()
|
||||
l3_agent.host = FAKE_HOST
|
||||
|
|
Loading…
Reference in New Issue