Late load rabbit_notifier in test_notifier
Fixes bug #945358 Change-Id: I7a323da5c340fca56bc5fd96eb7f936f586372e7
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import nova
|
import nova
|
||||||
|
from nova import flags
|
||||||
from nova import log
|
from nova import log
|
||||||
import nova.notifier.no_op_notifier
|
import nova.notifier.no_op_notifier
|
||||||
from nova.notifier import api as notifier_api
|
from nova.notifier import api as notifier_api
|
||||||
@@ -78,6 +79,7 @@ class NotifierTestCase(test.TestCase):
|
|||||||
'event_type', 'not a priority', dict(a=3))
|
'event_type', 'not a priority', dict(a=3))
|
||||||
|
|
||||||
def test_rabbit_priority_queue(self):
|
def test_rabbit_priority_queue(self):
|
||||||
|
flags.DECLARE('notification_topics', 'nova.notifier.rabbit_notifier')
|
||||||
self.stubs.Set(nova.flags.FLAGS, 'notification_driver',
|
self.stubs.Set(nova.flags.FLAGS, 'notification_driver',
|
||||||
'nova.notifier.rabbit_notifier')
|
'nova.notifier.rabbit_notifier')
|
||||||
self.stubs.Set(nova.flags.FLAGS, 'notification_topics',
|
self.stubs.Set(nova.flags.FLAGS, 'notification_topics',
|
||||||
|
|||||||
Reference in New Issue
Block a user