spec/elasticsearch/api/actions/snapshot/delete_repository_spec.rb in elasticsearch-api-8.10.0 vs spec/elasticsearch/api/actions/snapshot/delete_repository_spec.rb in elasticsearch-api-8.11.0
- old
+ new
@@ -23,11 +23,13 @@
[
'DELETE',
url,
{},
nil,
- {}
+ {},
+ { defined_params: { repository: 'foo' },
+ endpoint: 'snapshot.delete_repository' }
]
end
let(:url) do
'_snapshot/foo'
@@ -39,9 +41,21 @@
context 'when multiple indices are specified' do
let(:url) do
'_snapshot/foo,bar'
+ end
+
+ let(:expected_args) do
+ [
+ 'DELETE',
+ url,
+ {},
+ nil,
+ {},
+ { defined_params: { repository: ['foo','bar'] },
+ endpoint: 'snapshot.delete_repository' }
+ ]
end
it 'performs the request' do
expect(client_double.snapshot.delete_repository(repository: ['foo','bar'])).to be_a Elasticsearch::API::Response
end