Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Filebeat pytest improvements #30103

Merged

Commits on Jan 31, 2022

  1. Include the test_file as wait_until name

    This surfaces which file the test was waiting to see documents from. Otherwise you just get a numeric test failure with no clear idea of which file isn't ingesting as expected.
    matschaffer committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    033aec0 View commit details
    Browse the repository at this point in the history
  2. Support TESTING_FILEBEAT_FILEPATTERN to test a single ingest file

    For example:
    
    ```
    INTEGRATION_TESTS=1 BEAT_STRICT_PERMS=false TESTING_FILEBEAT_MODULES=elasticsearch TESTING_FILEBEAT_FILESETS=slowlog TESTING_FILEBEAT_FILEPATTERN=es_indexing_slowlog.800.log ES_PASS=changeme pytest tests/system/test_modules.py -v --full-trace
    ```
    matschaffer committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    35fb543 View commit details
    Browse the repository at this point in the history
  3. Include full event on "not documented" case

    By seeing the event, we can more easily identify which log file it's coming from.
    matschaffer committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    6065ac4 View commit details
    Browse the repository at this point in the history
  4. Add changelog entry

    matschaffer committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    cd55578 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6ba47b2 View commit details
    Browse the repository at this point in the history
  6. Lint fix

    matschaffer committed Jan 31, 2022
    Configuration menu
    Copy the full SHA
    94130de View commit details
    Browse the repository at this point in the history