Fix test_rpc_consumer_isolation for oslo.messaging 5.31.0
With this change in oslo.messaging 5.31.0:
I0bbf9fca0ecbe71efa87c9613ffd32eb718f2c0e
The endpoint passed in is going to be checked for a 'target'
attribute and check it's type if set, so looking for it has
to be ignored.
There are also some services tests that are mocking out what is
eventually an rpc endpoint and those need to specifically
set the target attribute to None otherwise .get() on the Mock
will return another Mock and cause a failure.
Reviewed: https:/ /review. openstack. org/501400 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=943be8560dd 9410de6b0f507d9 dbc85df0c1d928
Committed: https:/
Submitter: Jenkins
Branch: master
commit 943be8560dd9410 de6b0f507d9dbc8 5df0c1d928
Author: Matt Riedemann <email address hidden>
Date: Wed Sep 6 15:52:51 2017 -0400
Fix test_rpc_ consumer_ isolation for oslo.messaging 5.31.0
With this change in oslo.messaging 5.31.0:
I0bbf9fca 0ecbe71efa87c96 13ffd32eb718f2c 0e
The endpoint passed in is going to be checked for a 'target'
attribute and check it's type if set, so looking for it has
to be ignored.
There are also some services tests that are mocking out what is
eventually an rpc endpoint and those need to specifically
set the target attribute to None otherwise .get() on the Mock
will return another Mock and cause a failure.
Change-Id: Ic12df8b12b1379 f902137d49b605d aaf0b89801d
Closes-Bug: #1715470