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
This commit is contained in:
Mayya Sharipova 2019-11-15 16:01:37 -05:00
parent 2886d4c6dd
commit 0e933a093d
1 changed files with 7 additions and 0 deletions

View File

@ -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: