From 159420be9964f1178073e6e5d0bdeb87c28c7773 Mon Sep 17 00:00:00 2001 From: Julian Morales Date: Thu, 2 May 2024 13:19:19 +0000 Subject: [PATCH] Changed 'target' to 'socket' to comply with endpoint --- src/wazuh_testing/modules/logcollector/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wazuh_testing/modules/logcollector/utils.py b/src/wazuh_testing/modules/logcollector/utils.py index 0e16e6d8..0f309bb8 100644 --- a/src/wazuh_testing/modules/logcollector/utils.py +++ b/src/wazuh_testing/modules/logcollector/utils.py @@ -74,7 +74,7 @@ def validate_test_config_with_module_config(test_configuration): if all([config.get(key) == value for key, value in test_config.items()]): configuration_in_module = True elif test_section == 'socket': - for config in json_response['target']: + for config in json_response['socket']: if all([config.get(key) == value for key, value in test_config.items()]): configuration_in_module = True