Fix Gate Failure
This Patch fixes gate failure, encountered in recent version of oslo_messaging. Change-Id: I6d8ab882a7c157dcf4f78c805a4ce2d9b1fa3f14 Closes-Bug: #1716476
This commit is contained in:
@@ -28,12 +28,18 @@ from watcher.tests import base
|
|||||||
CONF = cfg.CONF
|
CONF = cfg.CONF
|
||||||
|
|
||||||
|
|
||||||
|
class DummyEndpoint(object):
|
||||||
|
|
||||||
|
def __init__(self, messaging):
|
||||||
|
self._messaging = messaging
|
||||||
|
|
||||||
|
|
||||||
class DummyManager(object):
|
class DummyManager(object):
|
||||||
|
|
||||||
API_VERSION = '1.0'
|
API_VERSION = '1.0'
|
||||||
|
|
||||||
conductor_endpoints = [mock.Mock()]
|
conductor_endpoints = [DummyEndpoint]
|
||||||
notification_endpoints = [mock.Mock()]
|
notification_endpoints = [DummyEndpoint]
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.publisher_id = "pub_id"
|
self.publisher_id = "pub_id"
|
||||||
|
|||||||
Reference in New Issue
Block a user