From 6f12f35b6b279130c2606fde1333c9ba9064f8b3 Mon Sep 17 00:00:00 2001 From: Nicolas Stefani Date: Mon, 9 Jan 2023 16:42:52 -0300 Subject: [PATCH] feat(#3341): Add only_logs_after tests for aws Trusted Advisor integration --- .../cases_with_only_logs_after.yaml | 12 ++++++++++++ .../cases_without_only_logs_after.yaml | 10 ++++++++++ 2 files changed, 22 insertions(+) diff --git a/tests/integration/test_aws/data/test_cases/only_logs_after_test_module/cases_with_only_logs_after.yaml b/tests/integration/test_aws/data/test_cases/only_logs_after_test_module/cases_with_only_logs_after.yaml index aafb24f80d..7f03b05679 100644 --- a/tests/integration/test_aws/data/test_cases/only_logs_after_test_module/cases_with_only_logs_after.yaml +++ b/tests/integration/test_aws/data/test_cases/only_logs_after_test_module/cases_with_only_logs_after.yaml @@ -9,3 +9,15 @@ bucket_name: wazuh-cloudtrail-integration-tests only_logs_after: 2022-NOV-20 expected_results: 5 + +- name: trusted_avisor_with_only_logs_after + description: Trusted Advisor only logs after configurations + configuration_parameters: + BUCKET_TYPE: custom + BUCKET_NAME: wazuh-trusted-advisor-integration-tests + ONLY_LOGS_AFTER: 2022-NOV-20 + metadata: + bucket_type: custom + bucket_name: wazuh-trusted-advisor-integration-tests + only_logs_after: 2022-NOV-20 + expected_results: 3 diff --git a/tests/integration/test_aws/data/test_cases/only_logs_after_test_module/cases_without_only_logs_after.yaml b/tests/integration/test_aws/data/test_cases/only_logs_after_test_module/cases_without_only_logs_after.yaml index 1e705a4520..65fd7799fe 100644 --- a/tests/integration/test_aws/data/test_cases/only_logs_after_test_module/cases_without_only_logs_after.yaml +++ b/tests/integration/test_aws/data/test_cases/only_logs_after_test_module/cases_without_only_logs_after.yaml @@ -7,3 +7,13 @@ bucket_type: cloudtrail bucket_name: wazuh-cloudtrail-integration-tests expected_results: 1 + +- name: trusted_advisor_without_only_logs_after + description: Trusted Advisor only logs after configurations + configuration_parameters: + BUCKET_TYPE: custom + BUCKET_NAME: wazuh-trusted-advisor-integration-tests + metadata: + bucket_type: custom + bucket_name: wazuh-trusted-advisor-integration-tests + expected_results: 1