IT FIM - Fix Solaris and Macos fails for 4.3 #2977
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
During runs of the Nightly pipeline, it was found that the test module
test_basic_usage_realtime_unsupported.py
was having flaky behaviour, on Solaris OS. This PR applies a fix to that test, as well as two other modules that also presented flaky behaviour during testing.Also, during testing it was found that the modify_file_inode function on the deps/wazuh_testing/fim.py module would cause
OS ERROR 18: Invalid cross device link
on some systems, because of the functionos.replace
. The function was replaced by shutil.move, that has the same functionality and parameters but does not generate this error.Affected Test Modules
Configuration options
Local Internal Options:
Agent
Tests Results
Required
pycodestyle --max-line-length=120 --show-source --show-pep8 file.py
.