Fix flakiness in yml test (#110029)

* Apply FLS to the contents of IgnoredSourceFieldMapper

* Update docs/changelog/109931.yaml

* minor refactor

* minor refactor

* spotless fix

* more tests

* check unfiltered map

* add comments

* add comments

* add unittest

* update test

* Fix test flakiness
This commit is contained in:
Kostas Krikellas 2024-06-21 12:38:51 +03:00 committed by GitHub
parent 49280e811c
commit b18ee11b75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -356,6 +356,7 @@ Field with ignored_malformed:
Authorization: "ApiKey ${credentials}"
search:
index: index_fls
sort: name
- match: { hits.hits.0._source.name: A }
- is_false: "hits.hits.0._source.secret"
- match: { hits.hits.1._source.name: B }