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: I0cee8383d5cc2f899f7e31f7aa9ae6bf1d81ebe5
Partial-Bug: #1712399
This commit is contained in:
Steve Kowalik 2018-06-07 10:58:18 +10:00
parent b473f6c880
commit 1f324c67e1
2 changed files with 2 additions and 2 deletions

View File

@ -189,7 +189,7 @@ class ConfigFixture(fixture.GabbiFixture):
conf = conf_fixture.Config().conf
policy_opts.set_defaults(conf)
msg_conf = conffixture.ConfFixture(conf)
msg_conf.transport_driver = 'fake'
msg_conf.transport_url = 'fake:/'
conf.import_group('api', 'cloudkitty.api.app')
conf.set_override('auth_strategy', self.auth_strategy)
conf.set_override('connection', 'sqlite:///', 'database')

View File

@ -37,7 +37,7 @@ class OrchestratorTest(tests.TestCase):
def setUp(self):
super(OrchestratorTest, self).setUp()
messaging_conf = self.useFixture(conffixture.ConfFixture(self.conf))
messaging_conf.transport_driver = 'fake'
messaging_conf.transport_url = 'fake:/'
self.conf.set_override('backend', 'keystone', 'tenant_fetcher')
self.conf.import_group('keystone_fetcher',
'cloudkitty.fetcher.keystone')