diff --git a/deps/wazuh_testing/wazuh_testing/modules/aws/data_generator.py b/deps/wazuh_testing/wazuh_testing/modules/aws/data_generator.py index b66d94038c..1cf823c326 100644 --- a/deps/wazuh_testing/wazuh_testing/modules/aws/data_generator.py +++ b/deps/wazuh_testing/wazuh_testing/modules/aws/data_generator.py @@ -254,10 +254,10 @@ def get_filename(self, *args, **kwargs) -> str: str: Synthetic filename. """ now = datetime.utcnow() - path = f"{self.BASE_PATH}{now.strftime(cons.PATH_DATE_FORMAT)}/" + path = join(self.BASE_PATH, now.strftime(cons.PATH_DATE_FORMAT)) name = f"{self.BASE_FILE_NAME}{now.strftime(cons.FILENAME_DATE_FORMAT)}{cons.JSON_EXT}" - return f'{path}{name}' + return join(path, name) def get_data_sample(self) -> str: """Returns a sample of data according to the KMS format.