tests: fix messaging driver

Since last oslo.config, an issue in our tests have showup.

We set a string on a MultiStrOpt, for example this results to have the
messaging driver looks like ["a", "e", "g", "i", "m", "n"] instead of
["messaging"]. I wonder how this have worked before...

This change fixes the drivers lists.

(cherry picked from commit 52f561c88e)
Change-Id: I973aa66f54b284fd87b1e48d43a2e459d760cbe3
This commit is contained in:
Mehdi Abaakouk 2017-04-27 08:21:35 +02:00
parent df47b4e90b
commit 27cc9758b9
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ from ceilometer import messaging
class BaseTestCase(base.BaseTestCase):
def setup_messaging(self, conf, exchange=None):
self.useFixture(oslo_messaging.conffixture.ConfFixture(conf))
conf.set_override("notification_driver", "messaging")
conf.set_override("notification_driver", ["messaging"])
if not exchange:
exchange = 'ceilometer'
conf.set_override("control_exchange", exchange)

View File

@ -64,7 +64,7 @@ class TestAPIUpgradePath(v2.FunctionalTest):
return 'http://event-endpoint:8009/'
def _do_test_gnocchi_enabled_without_database_backend(self):
self.CONF.set_override('meter_dispatchers', 'gnocchi')
self.CONF.set_override('meter_dispatchers', ['gnocchi'])
for endpoint in ['meters', 'samples', 'resources']:
response = self.app.get(self.PATH_PREFIX + '/' + endpoint,
status=410)