From 0e933a093d0a5aaab96a4853a472ec96d4d8443e Mon Sep 17 00:00:00 2001 From: Mayya Sharipova Date: Fri, 15 Nov 2019 16:01:37 -0500 Subject: [PATCH] Add index name to search requests (#49175) We can't guarantee expected request failures if search request is across many indexes, as if expected shards fail, some indexes may return 200. closes #47743 --- .../test/vectors/20_dense_vector_special_cases.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/20_dense_vector_special_cases.yml b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/20_dense_vector_special_cases.yml index 03ae66152d1..f323043ef71 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/20_dense_vector_special_cases.yml +++ b/x-pack/plugin/src/test/resources/rest-api-spec/test/vectors/20_dense_vector_special_cases.yml @@ -57,6 +57,7 @@ setup: Content-Type: application/json search: rest_total_hits_as_int: true + index: test-index body: query: script_score: @@ -76,6 +77,7 @@ setup: Content-Type: application/json search: rest_total_hits_as_int: true + index: test-index body: query: script_score: @@ -106,6 +108,7 @@ setup: catch: bad_request search: rest_total_hits_as_int: true + index: test-index body: query: script_score: @@ -120,6 +123,7 @@ setup: catch: bad_request search: rest_total_hits_as_int: true + index: test-index body: query: script_score: @@ -156,6 +160,7 @@ setup: Content-Type: application/json search: rest_total_hits_as_int: true + index: test-index body: query: script_score: @@ -172,6 +177,7 @@ setup: Content-Type: application/json search: rest_total_hits_as_int: true + index: test-index body: query: script_score: @@ -203,6 +209,7 @@ setup: headers: Content-Type: application/json search: + index: test-index body: query: script_score: