From 7bc984b84add3f2b39ead42d04667367ce8cd7e9 Mon Sep 17 00:00:00 2001 From: aditi Date: Tue, 12 Sep 2017 16:26:19 +0900 Subject: [PATCH] Fix Gate Failure This Patch fixes gate failure, encountered in recent version of oslo_messaging. Change-Id: I6d8ab882a7c157dcf4f78c805a4ce2d9b1fa3f14 Closes-Bug: #1716476 --- watcher/tests/common/test_service.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/watcher/tests/common/test_service.py b/watcher/tests/common/test_service.py index 1ef7af39f..530b6e445 100644 --- a/watcher/tests/common/test_service.py +++ b/watcher/tests/common/test_service.py @@ -28,12 +28,18 @@ from watcher.tests import base CONF = cfg.CONF +class DummyEndpoint(object): + + def __init__(self, messaging): + self._messaging = messaging + + class DummyManager(object): API_VERSION = '1.0' - conductor_endpoints = [mock.Mock()] - notification_endpoints = [mock.Mock()] + conductor_endpoints = [DummyEndpoint] + notification_endpoints = [DummyEndpoint] def __init__(self): self.publisher_id = "pub_id"