From 21179a1125c0d4e116a81d20e29abc834dd215ed Mon Sep 17 00:00:00 2001 From: Liam Young Date: Wed, 20 Apr 2022 12:46:59 +0000 Subject: [PATCH] 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. --- zaza/openstack/charm_tests/ceilometer_agent/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zaza/openstack/charm_tests/ceilometer_agent/tests.py b/zaza/openstack/charm_tests/ceilometer_agent/tests.py index 655b1c7..cdb1967 100644 --- a/zaza/openstack/charm_tests/ceilometer_agent/tests.py +++ b/zaza/openstack/charm_tests/ceilometer_agent/tests.py @@ -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))