Skip to content

Fail tests if documents contained _ignored fields #1276

@andrewkroh

Description

@andrewkroh

Fleet turned on ignore_malformed for logs data streams in elastic/kibana#157184. This causes Elasticsearch to silently ignore malformed fields (for certain types). This is great for users, but silent failures are the bane of developers and unit tests.

elastic-package should be updated to check if any documents returned in tests contain _ignored. This would indicate the document contains malformed data and the test should fail.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions