From 1f324c67e169beb6940ad273832da70f561dac54 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 7 Jun 2018 10:58:18 +1000 Subject: [PATCH] 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 --- cloudkitty/tests/gabbi/fixtures.py | 2 +- cloudkitty/tests/test_orchestrator.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudkitty/tests/gabbi/fixtures.py b/cloudkitty/tests/gabbi/fixtures.py index 913966b6..d737d866 100644 --- a/cloudkitty/tests/gabbi/fixtures.py +++ b/cloudkitty/tests/gabbi/fixtures.py @@ -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') diff --git a/cloudkitty/tests/test_orchestrator.py b/cloudkitty/tests/test_orchestrator.py index 491d1330..4dbc4243 100644 --- a/cloudkitty/tests/test_orchestrator.py +++ b/cloudkitty/tests/test_orchestrator.py @@ -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')