Skip to content

Commit ef5c561

Browse files
committed
Update shutdown specs
1 parent f54f98e commit ef5c561

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

elasticsearch-api/spec/elasticsearch/api/actions/shutdown/delete_node_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
'_nodes/id/shutdown',
2525
{},
2626
nil,
27-
{}
27+
{},
28+
{ defined_params: { node_id: 'id' }, endpoint: 'shutdown.delete_node' }
2829
]
2930
end
3031

elasticsearch-api/spec/elasticsearch/api/actions/shutdown/get_node_spec.rb

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
url,
2525
{},
2626
nil,
27-
{}
27+
{},
28+
{ defined_params: { node_id: 'id' }, endpoint: 'shutdown.get_node' }
2829
]
2930
end
3031

@@ -39,6 +40,17 @@
3940
context 'when no id is provided' do
4041
let(:url) { '_nodes/shutdown' }
4142

43+
let(:expected_args) do
44+
[
45+
'GET',
46+
url,
47+
{},
48+
nil,
49+
{},
50+
{ endpoint: 'shutdown.get_node' }
51+
]
52+
end
53+
4254
it 'performs the request' do
4355
expect(client_double.shutdown.get_node).to be_a Elasticsearch::API::Response
4456
end

elasticsearch-api/spec/elasticsearch/api/actions/shutdown/put_node_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
'_nodes/id/shutdown',
2525
{},
2626
{},
27-
{}
27+
{},
28+
{ defined_params: { node_id: 'id' }, endpoint: 'shutdown.put_node' }
2829
]
2930
end
3031

0 commit comments

Comments
 (0)