tests: fix MultiStrOpt value

Last oslo.config was magically converting MultiStrOpt "messaging" to ["messaging"],
that was not expected, oslo.messaging have a test that use "messaging"
instead of a list.

This change fixes that.

Change-Id: I65b8cc551dde6f80d979640ba3db097572f3fe9b
This commit is contained in:
Mehdi Abaakouk 2017-04-27 08:46:18 +02:00
parent 83e738c2fd
commit 4818fda46e
1 changed files with 2 additions and 2 deletions

View File

@ -57,13 +57,13 @@ class TestConfFixture(test_utils.BaseTestCase):
def test_old_notifications_config_override(self):
conf = self.messaging_conf.conf
conf.set_override(
"notification_driver", "messaging")
"notification_driver", ["messaging"])
conf.set_override(
"notification_transport_url", "http://xyz")
conf.set_override(
"notification_topics", ['topic1'])
self.assertEqual("messaging",
self.assertEqual(["messaging"],
conf.oslo_messaging_notifications.driver)
self.assertEqual("http://xyz",
conf.oslo_messaging_notifications.transport_url)