Skip to content

Commit

Permalink
Replace search_shards with search API in tests (#111211)
Browse files Browse the repository at this point in the history
The `search_shards` API is not available in serverless. This PR replaces
its usage in the newly added test with the `search` API with profiling.

Relates #111123
  • Loading branch information
dnhatn authored Jul 23, 2024
1 parent ce3bc5d commit 8e07c4e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -556,10 +556,13 @@
url:
type: keyword
- do:
search_shards:
search:
index: index1
body:
profile: true

- set:
shards.0.0.node: node_id
profile.shards.0.node_id: node_id

- do:
nodes.stats: { metric: _all, level: "indices", human: true }
Expand Down

0 comments on commit 8e07c4e

Please sign in to comment.