File tree 9 files changed +12
-370
lines changed
elasticsearch-api/lib/elasticsearch/api/actions/indices
9 files changed +12
-370
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -50,8 +50,6 @@ class Client
50
50
# E.g.: client.xpack.usage => client.usage
51
51
# Excluding `info` since OSS and XPACK both have info endpoints.
52
52
TOP_LEVEL_METHODS = [
53
- :open_point_in_time ,
54
- :close_point_in_time ,
55
53
:usage
56
54
] . freeze
57
55
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 18
18
require 'spec_helper'
19
19
20
20
describe 'client.indices#freeze' do
21
-
22
21
let ( :expected_args ) do
23
22
[
24
- 'POST' ,
25
- url ,
26
- params ,
27
- nil ,
28
- { }
23
+ 'POST' ,
24
+ url ,
25
+ params ,
26
+ nil ,
27
+ { }
29
28
]
30
29
end
31
30
34
33
end
35
34
36
35
context 'when there is no index specified' do
37
-
38
36
let ( :client ) do
39
- Class . new { include Elasticsearch ::API } . new
37
+ Class . new { include Elasticsearch ::XPack :: API } . new
40
38
end
41
39
42
40
it 'raises an exception' do
47
45
end
48
46
49
47
context 'when an index is specified' do
50
-
51
48
let ( :url ) do
52
49
'foo/_freeze'
53
50
end
58
55
end
59
56
60
57
context 'when params are specified' do
61
-
62
58
let ( :params ) do
63
59
{ timeout : '1s' }
64
60
end
73
69
end
74
70
75
71
context 'when the path must be URL-escaped' do
76
-
77
72
let ( :url ) do
78
73
'foo%5Ebar/_freeze'
79
74
end
Original file line number Diff line number Diff line change 18
18
require 'spec_helper'
19
19
20
20
describe 'client.indices#unfreeze' do
21
-
22
21
let ( :expected_args ) do
23
22
[
24
- 'POST' ,
25
- url ,
26
- params ,
27
- nil ,
28
- { }
23
+ 'POST' ,
24
+ url ,
25
+ params ,
26
+ nil ,
27
+ { }
29
28
]
30
29
end
31
30
34
33
end
35
34
36
35
context 'when there is no index specified' do
37
-
38
36
let ( :client ) do
39
- Class . new { include Elasticsearch ::API } . new
37
+ Class . new { include Elasticsearch ::XPack :: API } . new
40
38
end
41
39
42
40
it 'raises an exception' do
47
45
end
48
46
49
47
context 'when an index is specified' do
50
-
51
48
let ( :url ) do
52
49
'foo/_unfreeze'
53
50
end
58
55
end
59
56
60
57
context 'when params are specified' do
61
-
62
58
let ( :params ) do
63
59
{ timeout : '1s' }
64
60
end
73
69
end
74
70
75
71
context 'when the path must be URL-escaped' do
76
-
77
72
let ( :url ) do
78
73
'foo%5Ebar/_unfreeze'
79
74
end
You can’t perform that action at this time.
0 commit comments