Merge "Use messaging notifications transport instead of default"
This commit is contained in:
commit
52df790c66
@ -62,7 +62,7 @@ def set_defaults(control_exchange='glance'):
|
||||
|
||||
|
||||
def get_transport():
|
||||
return oslo_messaging.get_transport(CONF, aliases=_ALIASES)
|
||||
return oslo_messaging.get_notification_transport(CONF, aliases=_ALIASES)
|
||||
|
||||
|
||||
class Notifier(object):
|
||||
|
@ -116,7 +116,7 @@ class TaskRepoStub(object):
|
||||
class TestNotifier(utils.BaseTestCase):
|
||||
|
||||
@mock.patch.object(oslo_messaging, 'Notifier')
|
||||
@mock.patch.object(oslo_messaging, 'get_transport')
|
||||
@mock.patch.object(oslo_messaging, 'get_notification_transport')
|
||||
def _test_load_strategy(self,
|
||||
mock_get_transport, mock_notifier,
|
||||
url, driver):
|
||||
|
Loading…
Reference in New Issue
Block a user