File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
elasticsearch-api/spec/elasticsearch/api/actions/nodes Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 5
5
require 'spec_helper'
6
6
7
7
describe 'client#reload_secure_settings' do
8
-
9
8
let ( :expected_args ) do
10
9
[
11
10
'POST' ,
12
11
url ,
13
12
params ,
14
- nil ,
13
+ body ,
15
14
{ }
16
15
]
17
16
end
20
19
{ }
21
20
end
22
21
22
+ let ( :body ) { nil }
23
+
23
24
let ( :url ) do
24
25
'_nodes/reload_secure_settings'
25
26
end
29
30
end
30
31
31
32
context 'when a node id is specified' do
32
-
33
33
let ( :url ) do
34
34
'_nodes/foo/reload_secure_settings'
35
35
end
40
40
end
41
41
42
42
context 'when more than one node id is specified as a string' do
43
-
44
43
let ( :url ) do
45
44
'_nodes/foo,bar/reload_secure_settings'
46
45
end
47
46
47
+ let ( :body ) do
48
+ { foo : 'bar' }
49
+ end
50
+
48
51
it 'performs the request' do
49
52
expect ( client_double . nodes . reload_secure_settings ( node_id : 'foo,bar' , body : { foo : 'bar' } ) ) . to eq ( { } )
50
53
end
51
54
end
52
55
53
56
context 'when more than one node id is specified as a list' do
54
-
55
57
let ( :url ) do
56
58
'_nodes/foo,bar/reload_secure_settings'
57
59
end
58
60
61
+ let ( :body ) do
62
+ { foo : 'bar' }
63
+ end
64
+
59
65
it 'performs the request' do
60
66
expect ( client_double . nodes . reload_secure_settings ( node_id : [ 'foo' , 'bar' ] , body : { foo : 'bar' } ) ) . to eq ( { } )
61
67
end
62
68
end
63
69
64
70
context 'when a timeout param is specified' do
65
-
66
71
let ( :params ) do
67
- { timeout : '30s' }
72
+ { timeout : '30s' }
68
73
end
69
74
70
75
it 'performs the request' do
You can’t perform that action at this time.
0 commit comments