Disable "oslo.messaging" metrics
Since [1], "oslo.messaging" provides a feature to send RPC metrics to "oslo.metrics". This patch is breaking the CI unit tests jobs. Because those metrics are not needed in this CI, this patch disables this feature. [1]https://review.opendev.org/c/openstack/oslo.messaging/+/761848 Change-Id: I8611e140305636685c1532dc36812d24a234dc9b Closes-Bug: #1941725
This commit is contained in:
@@ -288,6 +288,7 @@ class TimeoutTestCase(base.BaseTestCase):
|
||||
rpc.init(CONF)
|
||||
rpc.TRANSPORT = mock.MagicMock()
|
||||
rpc.TRANSPORT._send.side_effect = messaging.MessagingTimeout
|
||||
rpc.TRANSPORT.conf.oslo_messaging_metrics.metrics_enabled = False
|
||||
target = messaging.Target(version='1.0', topic='testing')
|
||||
self.client = rpc.get_client(target)
|
||||
self.call_context = mock.Mock()
|
||||
@@ -447,6 +448,7 @@ class CastExceptionTestCase(base.BaseTestCase):
|
||||
rpc.init(CONF)
|
||||
rpc.TRANSPORT = mock.MagicMock()
|
||||
rpc.TRANSPORT._send.side_effect = oslomsg_exc.MessageDeliveryFailure
|
||||
rpc.TRANSPORT.conf.oslo_messaging_metrics.metrics_enabled = False
|
||||
target = messaging.Target(version='1.0', topic='testing')
|
||||
self.client = rpc.get_client(target)
|
||||
self.cast_context = mock.Mock()
|
||||
|
||||
Reference in New Issue
Block a user