From 03bfa95344a58ed2b2e6ae124083e08e85f20ff2 Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Thu, 28 Sep 2023 09:40:37 +0200 Subject: [PATCH] Add supported versions for YAML tests --- .../test/ml/text_expansion_search_rank_features.yml | 2 ++ .../test/ml/text_expansion_search_sparse_vector.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/text_expansion_search_rank_features.yml b/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/text_expansion_search_rank_features.yml index a099e327c32f0..28a6ad826bc64 100644 --- a/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/text_expansion_search_rank_features.yml +++ b/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/text_expansion_search_rank_features.yml @@ -2,6 +2,8 @@ # TextExpansionQueryIT.java to create the token weights. setup: - skip: + version: ' - 8.10.99' + reason: "sparse_vector field type reintroduced in 8.11" features: headers - do: headers: diff --git a/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/text_expansion_search_sparse_vector.yml b/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/text_expansion_search_sparse_vector.yml index 796c42a47725a..37a572a78dfd0 100644 --- a/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/text_expansion_search_sparse_vector.yml +++ b/x-pack/plugin/src/yamlRestTest/resources/rest-api-spec/test/ml/text_expansion_search_sparse_vector.yml @@ -3,6 +3,8 @@ setup: - skip: features: headers + version: ' - 8.7.99' + reason: "text_expansion query reintroduced in 8.8" - do: headers: Authorization: "Basic eF9wYWNrX3Jlc3RfdXNlcjp4LXBhY2stdGVzdC1wYXNzd29yZA==" # run as x_pack_rest_user, i.e. the test setup superuser