elastic / elastic-package

elastic-package - Command line tool for developing Elastic Integrations
Other
49 stars 116 forks source link

[system tests] Validate fields are documented via the mappings generated after ingesting docs comparing them to the preview mappings #2206

Open mrodm opened 1 week ago

mrodm commented 1 week ago

In order to try to be agnostic to the structure of the documents ingested to run the validation in system tests. It would be helpful to run validations comparing the mapping definitions instead.

These validations should be done with these two sets of mappings:

Being available these two sets of mappings, it would be needed to validate whether or not each mapping present in the data stream (after ingesting docs) has a corresponding mapping in the preview.

It should be taken into account that:

For now, the errors that could be raised as part of this validation should not make fail the validation process, therefore:

To be tested:

mrodm commented 2 days ago

Some assumptions made when adding this new validation based on mappings: