From 05c50f2479533966c3b885f033d09f3e717595c7 Mon Sep 17 00:00:00 2001 From: "ChangBo Guo(gcb)" Date: Fri, 17 Mar 2017 20:41:16 +0800 Subject: Remove old oslo.messaging transport aliases Those are remnants from the oslo-incubator times. Also, oslo.messaging deprecated [1] transport aliases since 5.2.0+ that is the minimal version supported for stable/newton. The patch that bumped the minimal version for Nova landed 3 months+ ago, so we can proceed ripping those aliases from the code base. [1] I314cefa5fb1803fa7e21e3e34300e5ced31bba89 Change-Id: Id8c0bc6733e930803b8e9fcf42a9a1f81dcbb356 Closes-Bug: #1424728 --- nova/tests/unit/test_rpc.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'nova/tests/unit/test_rpc.py') diff --git a/nova/tests/unit/test_rpc.py b/nova/tests/unit/test_rpc.py index 41eff64277..051ea8e791 100644 --- a/nova/tests/unit/test_rpc.py +++ b/nova/tests/unit/test_rpc.py @@ -179,8 +179,7 @@ class TestRPC(testtools.TestCase): url = rpc.get_transport_url(url_str='bar') self.assertEqual('foo', url) - mock_url.parse.assert_called_once_with(conf, 'bar', - rpc.TRANSPORT_ALIASES) + mock_url.parse.assert_called_once_with(conf, 'bar') @mock.patch.object(messaging, 'TransportURL') def test_get_transport_url_null(self, mock_url): @@ -191,8 +190,7 @@ class TestRPC(testtools.TestCase): url = rpc.get_transport_url() self.assertEqual('foo', url) - mock_url.parse.assert_called_once_with(conf, None, - rpc.TRANSPORT_ALIASES) + mock_url.parse.assert_called_once_with(conf, None) @mock.patch.object(rpc, 'profiler', None) @mock.patch.object(rpc, 'RequestContextSerializer') @@ -314,8 +312,7 @@ class TestRPC(testtools.TestCase): mock_exmods.assert_called_once_with() mock_transport.assert_called_once_with(rpc.CONF, url=mock.sentinel.url, - allowed_remote_exmods=exmods, - aliases=rpc.TRANSPORT_ALIASES) + allowed_remote_exmods=exmods) def _test_init(self, mock_notif, mock_noti_trans, mock_ser, mock_exmods, notif_format, expected_driver_topic_kwargs, -- cgit v1.2.1