From 5d4e78997f8a6b59c233806a4d55c798b78c1c9e Mon Sep 17 00:00:00 2001 From: Vu Cong Tuan Date: Tue, 27 Mar 2018 15:28:46 +0700 Subject: [PATCH] Replace usage of 'user' by 'user_id' DeprecationWarning: Using the 'user' argument is deprecated in version '2.18' and will be removed in version '3.0' Change-Id: I96061cf624c84145c4ec7031414aecb58c2ced79 --- neutron/tests/unit/plugins/ml2/test_rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neutron/tests/unit/plugins/ml2/test_rpc.py b/neutron/tests/unit/plugins/ml2/test_rpc.py index b0ea8f7018b..646e6a5f946 100644 --- a/neutron/tests/unit/plugins/ml2/test_rpc.py +++ b/neutron/tests/unit/plugins/ml2/test_rpc.py @@ -317,7 +317,7 @@ class RpcCallbacksTestCase(base.BaseTestCase): class RpcApiTestCase(base.BaseTestCase): def _test_rpc_api(self, rpcapi, topic, method, rpc_method, **kwargs): - ctxt = oslo_context.RequestContext(user='fake_user', + ctxt = oslo_context.RequestContext(user_id='fake_user', tenant='fake_project') expected_retval = 'foo' if rpc_method == 'call' else None expected_version = kwargs.pop('version', None)