oslo.messaging/oslo_messaging/tests/rpc
ChangBo Guo(gcb) 8cbca30afd Move decorator updated_kwarg_default_value to right place
debtcollector's decorator updated_kwarg_default_value is used to indicate
default value will be changed in future version. We introduced parameter
access_policy and add itfor constructor method of RPCDispatcher in
d3a8f280eb. Other services usually call
get_rpc_server method instead of calling constructor method of
RPCDispatcher. get_rpc_server method constructs RPCDispatcher instance
in [1], then FutureWarning will be generated even we set parameter
access_policy explicitly. Need move the decorator updated_kwarg_default_value
to method get_rec_server to avoid the case.

Closes-Bug: #1661572

[1] f1efaf1b6e/oslo_messaging/rpc/server.py (L200).

Change-Id: I3214045856d0bbd05a0000eeafb769e4697cd34c
2017-03-07 03:39:30 +00:00
..
__init__.py Move files out of the namespace package 2015-01-12 12:50:41 -05:00
test_client.py Test:Use unittest.mock on Python 3 2017-02-08 19:15:17 +08:00
test_dispatcher.py Replace mox with mock 2016-12-16 11:24:13 +01:00
test_server.py Move decorator updated_kwarg_default_value to right place 2017-03-07 03:39:30 +00:00