From b18ee11b75addb56bcfff397661dc7dd1d97b68b Mon Sep 17 00:00:00 2001 From: Kostas Krikellas <131142368+kkrik-es@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:38:51 +0300 Subject: [PATCH] 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 --- .../authz_api_keys/30_field_level_security_synthetic_source.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/security/authz_api_keys/30_field_level_security_synthetic_source.yml b/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/security/authz_api_keys/30_field_level_security_synthetic_source.yml index fc2e22d85735..b971c246ac50 100644 --- a/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/security/authz_api_keys/30_field_level_security_synthetic_source.yml +++ b/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/security/authz_api_keys/30_field_level_security_synthetic_source.yml @@ -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 }