Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Flaky Test] Auditbeat test_non_recursive on Darwin #24678

Closed
andrewkroh opened this issue Mar 22, 2021 · 1 comment · Fixed by #24679
Closed

[Flaky Test] Auditbeat test_non_recursive on Darwin #24678

andrewkroh opened this issue Mar 22, 2021 · 1 comment · Fixed by #24679
Labels
Auditbeat flaky-test Unstable or unreliable test cases.

Comments

@andrewkroh
Copy link
Member

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

@andrewkroh andrewkroh added Auditbeat flaky-test Unstable or unreliable test cases. labels Mar 22, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Mar 22, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Mar 22, 2021
andrewkroh added a commit to andrewkroh/beats that referenced this issue Mar 22, 2021
andrewkroh added a commit to andrewkroh/beats that referenced this issue Mar 22, 2021
andrewkroh added a commit that referenced this issue Mar 22, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Auditbeat flaky-test Unstable or unreliable test cases.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants