From 582d62eed49a363b146c4b93a145ff0c2cd2b495 Mon Sep 17 00:00:00 2001 From: Nicolas Stefani Date: Fri, 17 Feb 2023 17:56:00 -0300 Subject: [PATCH] fix(#3333): Improve some test findings --- .../only_logs_after_test_module/cases_multiple_calls.yaml | 6 ++++++ tests/integration/test_aws/test_only_logs_after.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tests/integration/test_aws/data/test_cases/only_logs_after_test_module/cases_multiple_calls.yaml b/tests/integration/test_aws/data/test_cases/only_logs_after_test_module/cases_multiple_calls.yaml index e0ee7fd867..2b664de889 100644 --- a/tests/integration/test_aws/data/test_cases/only_logs_after_test_module/cases_multiple_calls.yaml +++ b/tests/integration/test_aws/data/test_cases/only_logs_after_test_module/cases_multiple_calls.yaml @@ -55,6 +55,8 @@ metadata: bucket_type: custom bucket_name: wazuh-macie-integration-tests + expected_skipped_logs_step_3: 3 + expected_skipped_logs_step_4: 3 - name: trusted_advisor_only_logs_after_multiple_calls description: Trusted Advisor only_logs_after multiple calls configurations @@ -62,6 +64,8 @@ metadata: bucket_type: custom bucket_name: wazuh-trusted-advisor-integration-tests + expected_skipped_logs_step_3: 3 + expected_skipped_logs_step_4: 3 - name: guardduty_only_logs_after_multiple_calls description: GuardDuty only_logs_after multiple calls configurations @@ -69,6 +73,8 @@ metadata: bucket_type: guardduty bucket_name: wazuh-guardduty-integration-tests + expected_skipped_logs_step_3: 3 + expected_skipped_logs_step_4: 3 - name: native_guardduty_only_logs_after_multiple_calls description: Native GuardDuty only_logs_after multiple calls configurations diff --git a/tests/integration/test_aws/test_only_logs_after.py b/tests/integration/test_aws/test_only_logs_after.py index a09ed269d0..47bf91ec63 100644 --- a/tests/integration/test_aws/test_only_logs_after.py +++ b/tests/integration/test_aws/test_only_logs_after.py @@ -325,7 +325,7 @@ def test_multiple_calls( # Call the module without only_logs_after and check that no logs were processed last_marker_key = datetime.utcnow().strftime(cons.PATH_DATE_FORMAT) - if bucket_type == cons.CUSTOM_TYPE: + if bucket_type == cons.CUSTOM_TYPE or (bucket_type == cons.GUARD_DUTY_TYPE and 'native' not in bucket_name): event_monitor.check_marker_from_output( command_output=call_aws_module(*base_parameters), file_key=last_marker_key