From 0ed259de5236631c3742f25c5cd43fb6c160c205 Mon Sep 17 00:00:00 2001 From: Mehdi Abaakouk Date: Fri, 28 Apr 2017 14:53:17 +0200 Subject: [PATCH] tests: fix MultiStrOpt value Previous oslo.config was magically converting MultiStrOpt "messaging" to ["messaging"], that was not expected, now the bug is fixed in oslo.config, but our test is buggy too. This change fixes that. Change-Id: I4e831366aa3194418012b6ff9de59ef1916df758 --- aodh/tests/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aodh/tests/base.py b/aodh/tests/base.py index 3569af28e..2a4942e0c 100644 --- a/aodh/tests/base.py +++ b/aodh/tests/base.py @@ -33,7 +33,7 @@ from aodh 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 = 'aodh' conf.set_override("control_exchange", exchange)