Open mrodm opened 1 week ago
Some assumptions made when adding this new validation based on mappings:
array
are skipped.
array
is checked using the local field definitions in the package.
"_tmp": {
"type": "object"
}
constant_keyword
, just check/validate the value if both (preview and actual mappings) have "value" parameter.dynamic: true
:
"field": {
"dynamic": true,
"type": "object"
}
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:
Mappings and dynamic templates installed by Fleet before ingesting any doc.
These preview mappings can be retrieved using this simulated API:
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:
agent.*
,host.*
, ...) as it is done nowadays (link)For now, the errors that could be raised as part of this validation should not make fail the validation process, therefore:
To be tested: