Skip to content

Commit c93314d

Browse files
committed
[API] Update reload secure settings unit test
1 parent 8091804 commit c93314d

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

elasticsearch-api/spec/elasticsearch/api/actions/nodes/reload_secure_settings_spec.rb

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,14 @@
1111
'POST',
1212
url,
1313
params,
14-
nil,
14+
body,
1515
{}
1616
]
1717
end
1818

19-
let(:params) do
20-
{}
21-
end
22-
23-
let(:url) do
24-
'_nodes/reload_secure_settings'
25-
end
19+
let(:params) { {} }
20+
let(:url) { '_nodes/reload_secure_settings' }
21+
let(:body) { nil }
2622

2723
it 'performs the request' do
2824
expect(client_double.nodes.reload_secure_settings()).to eq({})
@@ -40,6 +36,7 @@
4036
end
4137

4238
context 'when more than one node id is specified as a string' do
39+
let(:body){ { foo: 'bar' } }
4340

4441
let(:url) do
4542
'_nodes/foo,bar/reload_secure_settings'
@@ -51,7 +48,7 @@
5148
end
5249

5350
context 'when more than one node id is specified as a list' do
54-
51+
let(:body){ { foo: 'bar' } }
5552
let(:url) do
5653
'_nodes/foo,bar/reload_secure_settings'
5754
end

0 commit comments

Comments
 (0)