From ebfe7cd1b1e7e088db04c448edab95ab8cc2b34c 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 ee8aa525f8..8e95fc2e36 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 @@ -21,3 +21,15 @@ bucket_name: wazuh-vpcflow-integration-tests only_logs_after: 2022-NOV-20 expected_results: 3 + +- 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 45db5064b5..2acc8cc682 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 @@ -17,3 +17,13 @@ bucket_type: vpcflow bucket_name: wazuh-vpcflow-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