Skip to content

[Filebeat][testing] Module tests don't check if indexing the event fails #23947

@andrewkroh

Description

@andrewkroh

The tests for Filebeat modules index events then check the result against a golden file. But the test itself won't fail if an event that it sends in a _bulk request fails to index. The tests should be checking for Cannot index event errors at

errors = ["Error loading pipeline for fileset"]

I did a check and found several modules that have index errors with their test logs. Attaching the failures below in a comment:

Metadata

Metadata

Assignees

No one assigned

    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