From e0a65a41ad79e87fc2c353230922cda09c0d55a7 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Mon, 27 Nov 2023 19:14:51 -0300 Subject: [PATCH] Remove unused mehod --- src/wazuh_testing/modules/aws/utils.py | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/wazuh_testing/modules/aws/utils.py b/src/wazuh_testing/modules/aws/utils.py index aff46d4a..3f30f54c 100644 --- a/src/wazuh_testing/modules/aws/utils.py +++ b/src/wazuh_testing/modules/aws/utils.py @@ -278,29 +278,3 @@ def path_exist(path: Path) -> bool: bool: True if exist else False """ return path.exists() - - # Call the module with the same parameters in and check there were no duplicates - expected_skipped_logs_step_3 = metadata.get('expected_skipped_logs_step_3', 1) - event_monitor.check_non_processed_logs_from_output( - command_output=call_aws_module(*base_parameters, ONLY_LOGS_AFTER_PARAM, '2022-NOV-20'), - bucket_type=bucket_type, - expected_results=expected_skipped_logs_step_3 - ) - - # Call the module with only_logs_after set with an early date than setted previously and check that no logs - # were processed, there were no duplicates - event_monitor.check_non_processed_logs_from_output( - command_output=call_aws_module(*base_parameters, ONLY_LOGS_AFTER_PARAM, '2022-NOV-22'), - bucket_type=bucket_type, - expected_results=expected_skipped_logs_step_3 - 1 if expected_skipped_logs_step_3 > 1 else 1 - ) - - # Upload a log file for the day of the test execution and call the module without only_logs_after and check that - # only the uploaded logs were processed and the last marker is specified in the DB. - last_marker_key = get_last_file_key(bucket_type, bucket_name, datetime.utcnow()) - metadata['filename'] = upload_file(bucket_type, bucket_name) - - event_monitor.check_marker_from_output( - command_output=call_aws_module(*base_parameters), - file_key=last_marker_key - )