Stop failing on unknown ceilometer metrics

The metric test is too strict and fails if it finds a metric that
is not explicitly listed in the test. Given the test does check
that the expected metrics are present there seems not need to fail
if a new one has added upstream.
This commit is contained in:
Liam Young
2022-04-20 12:46:59 +00:00
parent 735f948260
commit 21179a1125

View File

@@ -92,7 +92,7 @@ class CeilometerAgentTest(test_utils.OpenStackBaseTest):
unexpected_found_metric_names = (
found_metric_names - expected_metric_names)
if len(unexpected_found_metric_names) > 0:
self.fail(
logging.info(
'Unexpected metrics '
'published: ' + ', '.join(unexpected_found_metric_names))