File tree Expand file tree Collapse file tree 2 files changed +70
-2
lines changed
elasticsearch-api/spec/elasticsearch/api/actions/nodes Expand file tree Collapse file tree 2 files changed +70
-2
lines changed Original file line number Diff line number Diff line change 25
25
url ,
26
26
params ,
27
27
body ,
28
- { }
28
+ { } ,
29
+ { endpoint : 'nodes.reload_secure_settings' }
29
30
]
30
31
end
31
32
43
44
'_nodes/foo/reload_secure_settings'
44
45
end
45
46
47
+ let ( :expected_args ) do
48
+ [
49
+ 'POST' ,
50
+ url ,
51
+ params ,
52
+ body ,
53
+ { } ,
54
+ { defined_params : { node_id : 'foo' } , endpoint : 'nodes.reload_secure_settings' }
55
+ ]
56
+ end
57
+
46
58
it 'performs the request' do
47
59
expect ( client_double . nodes . reload_secure_settings ( node_id : 'foo' ) ) . to be_a Elasticsearch ::API ::Response
48
60
end
55
67
'_nodes/foo,bar/reload_secure_settings'
56
68
end
57
69
70
+ let ( :expected_args ) do
71
+ [
72
+ 'POST' ,
73
+ url ,
74
+ params ,
75
+ body ,
76
+ { } ,
77
+ { defined_params : { node_id : 'foo,bar' } , endpoint : 'nodes.reload_secure_settings' }
78
+ ]
79
+ end
80
+
58
81
it 'performs the request' do
59
82
expect ( client_double . nodes . reload_secure_settings ( node_id : 'foo,bar' , body : { foo : 'bar' } ) ) . to be_a Elasticsearch ::API ::Response
60
83
end
66
89
'_nodes/foo,bar/reload_secure_settings'
67
90
end
68
91
92
+ let ( :expected_args ) do
93
+ [
94
+ 'POST' ,
95
+ url ,
96
+ params ,
97
+ body ,
98
+ { } ,
99
+ { defined_params : { node_id : [ 'foo' , 'bar' ] } , endpoint : 'nodes.reload_secure_settings' }
100
+ ]
101
+ end
102
+
69
103
it 'performs the request' do
70
104
expect ( client_double . nodes . reload_secure_settings ( node_id : [ 'foo' , 'bar' ] , body : { foo : 'bar' } ) ) . to be_a Elasticsearch ::API ::Response
71
105
end
Original file line number Diff line number Diff line change 25
25
url ,
26
26
params ,
27
27
nil ,
28
- { }
28
+ { } ,
29
+ { endpoint : 'nodes.stats' }
29
30
]
30
31
end
31
32
47
48
'_nodes/foo/stats'
48
49
end
49
50
51
+ let ( :expected_args ) do
52
+ [
53
+ 'GET' ,
54
+ url ,
55
+ params ,
56
+ nil ,
57
+ { } ,
58
+ { defined_params : { node_id : 'foo' } , endpoint : 'nodes.stats' }
59
+ ]
60
+ end
61
+
50
62
it 'performs the request' do
51
63
expect ( client_double . nodes . stats ( node_id : 'foo' ) ) . to be_a Elasticsearch ::API ::Response
52
64
end
58
70
'_nodes/stats/http,fs'
59
71
end
60
72
73
+ let ( :expected_args ) do
74
+ [
75
+ 'GET' ,
76
+ url ,
77
+ params ,
78
+ nil ,
79
+ { } ,
80
+ { defined_params : { metric : [ :http , :fs ] } , endpoint : 'nodes.stats' }
81
+ ]
82
+ end
83
+
61
84
it 'performs the request' do
62
85
expect ( client_double . nodes . stats ( metric : [ :http , :fs ] ) ) . to be_a Elasticsearch ::API ::Response
63
86
end
69
92
'_nodes/stats/indices/filter_cache'
70
93
end
71
94
95
+ let ( :expected_args ) do
96
+ [
97
+ 'GET' ,
98
+ url ,
99
+ params ,
100
+ nil ,
101
+ { } ,
102
+ { defined_params : { metric : :indices , index_metric : :filter_cache } , endpoint : 'nodes.stats' }
103
+ ]
104
+ end
105
+
72
106
it 'performs the request' do
73
107
expect ( client_double . nodes . stats ( metric : :indices , index_metric : :filter_cache ) ) . to be_a Elasticsearch ::API ::Response
74
108
end
You can’t perform that action at this time.
0 commit comments