diff --git a/deps/wazuh_testing/wazuh_testing/__init__.py b/deps/wazuh_testing/wazuh_testing/__init__.py index b9d93a5670..70ff66a10b 100644 --- a/deps/wazuh_testing/wazuh_testing/__init__.py +++ b/deps/wazuh_testing/wazuh_testing/__init__.py @@ -27,7 +27,6 @@ WAZUH_DB_SOCKET_PATH = os.path.join(QUEUE_DB_PATH, 'wdb') CVE_DB_PATH = os.path.join(WAZUH_PATH, 'queue', 'vulnerabilities', 'cve.db') LOG_FILE_PATH = os.path.join(WAZUH_PATH, 'logs', 'ossec.log') -ALERTS_DIRECTORY_PATH = os.path.join(WAZUH_LOGS_PATH, 'alerts') ALERTS_JSON_PATH = os.path.join(WAZUH_PATH, 'logs', 'alerts', 'alerts.json') CPE_HELPER_PATH = os.path.join(WAZUH_PATH, 'queue', 'vulnerabilities', 'dictionaries', 'cpe_helper.json') WAZUH_API_CONF = os.path.join(WAZUH_PATH, 'api', 'configuration', 'api.yaml') @@ -60,7 +59,6 @@ SIMULATE_AGENT = os.path.join(WAZUH_TESTING_PATH, 'scripts', 'simulate_agents.py') SYSLOG_SIMULATOR = os.path.join(WAZUH_TESTING_PATH, 'scripts', 'syslog_simulator.py') ANALYSISD_STATE = os.path.join(WAZUH_PATH, 'var', 'run', 'wazuh-analysisd.state') -WAZUH_INTERNAL_OPTIONS = os.path.join(WAZUH_PATH, 'etc', 'internal_options.conf') # Timeouts T_5 = 5 diff --git a/deps/wazuh_testing/wazuh_testing/modules/eps/event_monitor.py b/deps/wazuh_testing/wazuh_testing/modules/eps/event_monitor.py index 8ea0e26a39..a43b2a60f9 100644 --- a/deps/wazuh_testing/wazuh_testing/modules/eps/event_monitor.py +++ b/deps/wazuh_testing/wazuh_testing/modules/eps/event_monitor.py @@ -85,7 +85,7 @@ def get_analysisd_state(): def get_messages_info(file_monitor, message, accum_results): - """Check if the alerts.log file contains the message + """Check if the alerts.json file contains the message Args: file_monitor (FileMonitor): Wazuh log monitor diff --git a/deps/wazuh_testing/wazuh_testing/scripts/simulate_agents.py b/deps/wazuh_testing/wazuh_testing/scripts/simulate_agents.py index 76673a34aa..7990097557 100644 --- a/deps/wazuh_testing/wazuh_testing/scripts/simulate_agents.py +++ b/deps/wazuh_testing/wazuh_testing/scripts/simulate_agents.py @@ -358,4 +358,4 @@ def main(): if __name__ == "__main__": - main() \ No newline at end of file + main() diff --git a/tests/integration/test_analysisd/test_eps/test_invalid_configuration.py b/tests/integration/test_analysisd/test_eps/test_invalid_configuration.py index 0cf9ddb654..41d5616562 100644 --- a/tests/integration/test_analysisd/test_eps/test_invalid_configuration.py +++ b/tests/integration/test_analysisd/test_eps/test_invalid_configuration.py @@ -28,8 +28,9 @@ @pytest.mark.tier(level=0) @pytest.mark.parametrize('configuration, metadata', zip(t1_configurations, t1_configuration_metadata), ids=t1_case_ids) @pytest.mark.parametrize('configure_local_internal_options_eps', [ANALYSISD_STATE_INTERNAL_DEFAULT], indirect=True) -def test_without_timeframe_maximum(configuration, metadata, load_wazuh_basic_configuration, set_wazuh_configuration_analysisd, - truncate_monitored_files, restart_wazuh_daemon_after_finishing): +def test_without_timeframe_maximum(configuration, metadata, load_wazuh_basic_configuration, + set_wazuh_configuration_analysisd, truncate_monitored_files, + restart_wazuh_daemon_after_finishing): ''' description: Check that wazuh manager is not started when `maximum` and `timeframe` are not present in the configuration file. diff --git a/tests/integration/test_analysisd/test_eps/test_stop_processing_events.py b/tests/integration/test_analysisd/test_eps/test_stop_processing_events.py index 43fc83c203..82f41e126d 100644 --- a/tests/integration/test_analysisd/test_eps/test_stop_processing_events.py +++ b/tests/integration/test_analysisd/test_eps/test_stop_processing_events.py @@ -40,8 +40,9 @@ @pytest.mark.parametrize('configuration, metadata', zip(t1_configurations, t1_configuration_metadata), ids=t1_case_ids) @pytest.mark.parametrize('configure_local_internal_options_eps', [timeframe_eps_t1], indirect=True) @pytest.mark.parametrize('simulate_agent_function', [params_stop_processing_events], indirect=True) -def test_stops_processing_events(configuration, metadata, load_wazuh_basic_configuration, set_wazuh_configuration_analysisd, - truncate_monitored_files, restart_wazuh_daemon_function, simulate_agent_function): +def test_stops_processing_events(configuration, metadata, load_wazuh_basic_configuration, + set_wazuh_configuration_analysisd, truncate_monitored_files, + restart_wazuh_daemon_function, simulate_agent_function): ''' description: Check that the `events_processed` value in the `/var/ossec/var/run/wazuh-analysisd.state` file must be lower or equal than `maximum` * `timeframe`