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 }