diff --git a/sdcm/tester.py b/sdcm/tester.py index 9e74ef2833..cc3117d6c4 100644 --- a/sdcm/tester.py +++ b/sdcm/tester.py @@ -524,8 +524,10 @@ def argus_finalize_test_run(self): last_events = get_events_grouped_by_category( limit=last_events_limit, _registry=self.events_processes_registry) events_sorted = [] + events_summary = get_logger_event_summary() for severity, messages in last_events.items(): - event_category = EventsInfo(severity=severity, total_events=len(messages), messages=messages) + event_category = EventsInfo( + severity=severity, total_events=events_summary.get(severity, 0), messages=messages) events_sorted.append(event_category) self.test_config.argus_client().submit_events(events_sorted) except Exception: # pylint: disable=broad-except diff --git a/unit_tests/test_tester.py b/unit_tests/test_tester.py index 1c81ff85c9..3942d42185 100644 --- a/unit_tests/test_tester.py +++ b/unit_tests/test_tester.py @@ -85,6 +85,9 @@ def _init_logging(self): def update_certificates(): pass + def argus_finalize_test_run(self): + pass + @property def elasticsearch(self): # pylint: disable=invalid-overridden-method return None