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 with dynamic templates if needed #2207

Open mrodm opened 2 weeks ago

mrodm commented 2 weeks ago

Follows #2206

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.

For those mappings that can not be validated against the preview mappings in #2206, it is also needed to validate if they match with any of the dynamic templates found in the data stream.

Mappings and dynamic templates can be retrieved from these APIs:

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

To be tested: