Skip to content

[Flaky Test] Auditbeat test_non_recursive on Darwin #24678

@andrewkroh

Description

@andrewkroh

Flaky Test

Stack Trace

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)

Screen Shot 2021-03-22 at 11 03 31 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions