diff options
author | Zuul <zuul@review.opendev.org> | 2022-12-21 12:16:31 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-12-21 12:16:31 +0000 |
commit | 39f3721209adc6a75d86c4cc165d9f73c266a564 (patch) | |
tree | 9aa012b3cab0a7ec46342f487ab234758d23a2a6 /ceilometer/tests | |
parent | 2686aeb695f5a7f08e58095079ac99ff745451a8 (diff) | |
parent | 463594b229017b30a1c457aaf6d4cdfef2bb421c (diff) | |
download | ceilometer-39f3721209adc6a75d86c4cc165d9f73c266a564.tar.gz |
Merge "NoUniqueMatch: ClientException on Gnocchi publisher"
Diffstat (limited to 'ceilometer/tests')
-rw-r--r-- | ceilometer/tests/unit/publisher/test_gnocchi.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ceilometer/tests/unit/publisher/test_gnocchi.py b/ceilometer/tests/unit/publisher/test_gnocchi.py index 741594d5..e8264f85 100644 --- a/ceilometer/tests/unit/publisher/test_gnocchi.py +++ b/ceilometer/tests/unit/publisher/test_gnocchi.py @@ -339,9 +339,9 @@ class PublisherTest(base.BaseTestCase): def test_activity_gnocchi_project_not_found(self, logger): self.ks_client.projects.find.side_effect = ka_exceptions.NotFound self._do_test_activity_filter(2) - logger.warning.assert_called_with('project %s not found in ' - 'keystone, ignoring the ' - 'filter_project option', 'service') + logger.warning.assert_called_with( + 'Filtered project [service] not found in keystone, ignoring the ' + 'filter_project option') def test_activity_filter_match_swift_event(self): self.samples[0].name = 'storage.objects.outgoing.bytes' @@ -749,8 +749,11 @@ class PublisherWorkflowTest(base.BaseTestCase, resource_type = resource_definition.cfg['resource_type'] expected_debug = [ - mock.call('filtered project found: %s', + mock.call('Filtered project [%s] found with ID [%s].', 'service', 'a2d42c23-d518-46b6-96ab-3fba2e146859'), + mock.call('Sample [%s] is not a Gnocchi activity; therefore, we ' + 'do not filter it out and push it to Gnocchi.', + self.sample), mock.call('Processing sample [%s] for resource ID [%s].', self.sample, resource_id), mock.call('Executing batch resource metrics measures for resource ' |