You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Logcollector IT fails in Windows agent due to errors in the directory and file creation and deletion fixture.
No errors were collected from the environment due to tests fail in fixture instead of the test itself.
E OSError: [WinError 145] The directory is not empty: 'c:\\testfolder\\subfolder'
...
E PermissionError: [Errno 13] Permission denied: 'c:\\test'
The error The directory is not empty: 'c:\\testfolder\\subfolder' was thoroughly investigated, but the situation in which it occurs was not found (we have not been able to reproduce it).
It occurs during the create_files_in_folder fixture, which is responsible for generating the directories and files needed for the test, and at the end of the test:
yield
delete_path_recursively(folder_path)
That ends up calling shutil.rmtree, which normally should be able to delete all the contents of the directory. It is necessary to investigate in which cases can appear a problem when deleting a file, but testing logcollector module in similar situation, Wazuh code not have any problem deleting this files.
MarcelKemp
changed the title
Windows FIM agent IT fails due to errors during directory creation/removal
Windows Logcollector agent IT fails due to errors during directory creation/removal
Mar 13, 2024
4.8.0-beta4
Description
Logcollector IT fails in Windows agent due to errors in the directory and file creation and deletion fixture.
No errors were collected from the environment due to tests fail in fixture instead of the test itself.
Evidences
The text was updated successfully, but these errors were encountered: