spec/elasticsearch/api/actions/cluster/reroute_spec.rb in elasticsearch-api-8.10.0 vs spec/elasticsearch/api/actions/cluster/reroute_spec.rb in elasticsearch-api-8.11.0
- old
+ new
@@ -23,11 +23,12 @@
[
'POST',
'_cluster/reroute',
{},
{},
- {}
+ {},
+ { endpoint: 'cluster.reroute' }
]
end
it 'performs the request' do
expect(client_double.cluster.reroute).to be_a Elasticsearch::API::Response
@@ -39,10 +40,11 @@
[
'POST',
'_cluster/reroute',
{},
{ commands: [ move: { index: 'myindex', shard: 0 }] },
- {}
+ {},
+ { endpoint: 'cluster.reroute' }
]
end
it 'performs the request' do
expect(client_double.cluster.reroute(body: { commands: [ move: { index: 'myindex', shard: 0 }] })).to be_a Elasticsearch::API::Response