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
This commit is contained in:
Vu Cong Tuan 2018-03-27 15:28:46 +07:00
parent b6a984003d
commit 5d4e78997f

View File

@ -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)