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:
parent
2886d4c6dd
commit
0e933a093d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue