summaryrefslogtreecommitdiff
path: root/nova/tests/unit/test_rpc.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/tests/unit/test_rpc.py')
-rw-r--r--nova/tests/unit/test_rpc.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/nova/tests/unit/test_rpc.py b/nova/tests/unit/test_rpc.py
index 3f50efec21..a265d45cbd 100644
--- a/nova/tests/unit/test_rpc.py
+++ b/nova/tests/unit/test_rpc.py
@@ -17,6 +17,7 @@ import datetime
import fixtures
import mock
import oslo_messaging as messaging
+from oslo_messaging.rpc import dispatcher
from oslo_serialization import jsonutils
from oslo_utils import fixture as utils_fixture
import testtools
@@ -214,8 +215,10 @@ class TestRPC(testtools.TestCase):
server = rpc.get_server(tgt, ends, serializer='foo')
mock_ser.assert_called_once_with('foo')
+ access_policy = dispatcher.DefaultRPCAccessPolicy
mock_get.assert_called_once_with(rpc.TRANSPORT, tgt, ends,
- executor='eventlet', serializer=ser)
+ executor='eventlet', serializer=ser,
+ access_policy=access_policy)
self.assertEqual('server', server)
@mock.patch.object(rpc, 'profiler', mock.Mock())
@@ -250,8 +253,10 @@ class TestRPC(testtools.TestCase):
server = rpc.get_server(tgt, ends, serializer='foo')
mock_ser.assert_called_once_with('foo')
+ access_policy = dispatcher.DefaultRPCAccessPolicy
mock_get.assert_called_once_with(rpc.TRANSPORT, tgt, ends,
- executor='eventlet', serializer=ser)
+ executor='eventlet', serializer=ser,
+ access_policy=access_policy)
self.assertEqual('server', server)
def test_get_notifier(self):