Error Message
beat.beat.TimeoutError: Timeout waiting for 'log_contains' to be true. Waited 30 seconds.
Stacktrace
self = <test_file_integrity.Test testMethod=test_non_recursive>
def test_non_recursive(self):
"""
file_integrity monitors watched directories (non recursive).
"""
dirs = [self.temp_dir("auditbeat_test"),
self.temp_dir("auditbeat_test")]
with PathCleanup(dirs):
self.render_config_template(
modules=[{
"name": "file_integrity",
"extras": {
"paths": dirs,
"scan_at_start": False
}
}],
)
proc = self.start_beat()
# wait until the directories to watch are printed in the logs
# this happens when the file_integrity module starts.
# Case must be ignored under windows as capitalisation of paths
# may differ
> self.wait_log_contains(escape_path(dirs[0]), max_timeout=30, ignore_case=True)
Flaky Test
beats/auditbeat/tests/system/test_file_integrity.py
Line 64 in bed3964
Stack Trace