diff options
author | ChangBo Guo(gcb) <eric.guo@easystack.cn> | 2017-03-17 20:41:16 +0800 |
---|---|---|
committer | ChangBo Guo(gcb) <eric.guo@easystack.cn> | 2017-03-17 20:41:16 +0800 |
commit | 05c50f2479533966c3b885f033d09f3e717595c7 (patch) | |
tree | 89d3c15b5d5cb107bfc7c44c7e468c6d1a003969 /nova/tests/unit/test_rpc.py | |
parent | abb33a457738c12cb538a874a6627777dfd46b8b (diff) | |
download | nova-05c50f2479533966c3b885f033d09f3e717595c7.tar.gz |
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
Diffstat (limited to 'nova/tests/unit/test_rpc.py')
-rw-r--r-- | nova/tests/unit/test_rpc.py | 9 |
1 files changed, 3 insertions, 6 deletions
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, |