Switch to oslo_messaging.ConfFixture.transport_url

oslo_messaging's rpc_backend setting, which is set by
ConfFixture.transport_driver has been deprecated since Newton. To allow
oslo_messaging to remove it, switch to setting transport_url instead.

Change-Id: Ib8839df1ae7e69bd751834903adcb96395154bf6
Partial-Bug: #1712399
This commit is contained in:
Steve Kowalik 2018-09-10 16:27:58 -06:00
parent f65cabd089
commit c436b10e56
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ class RPCFixture(fixtures.Fixture):
'oslo_messaging.Notifier', fake_notifier.FakeNotifier))
self.messaging_conf = conffixture.ConfFixture(CONF)
self.messaging_conf.transport_driver = 'fake'
self.messaging_conf.transport_url = 'fake:/'
# NOTE(russellb) We want all calls to return immediately.
self.messaging_conf.response_timeout = 0
self.useFixture(self.messaging_conf)