Skip to content

Commit 0953491

Browse files
committed
[API] Updates rename from rollup to downsample in tests
1 parent 1caee7d commit 0953491

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

elasticsearch-api/spec/unit_tests_platinum/unit/rollup/rollup_test.rb renamed to elasticsearch-api/spec/unit_tests_platinum/unit/indices/downsample_test.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,37 +19,37 @@
1919

2020
module Elasticsearch
2121
module Test
22-
class XPackRollupTest < Minitest::Test
23-
context "XPack Rollup: rollup an index" do
22+
class IndicesDownsampleTest < Minitest::Test
23+
context "Indices Downsample: Downsample an index" do
2424
subject { FakeClient.new }
2525

2626
should "perform correct request" do
2727
subject.expects(:perform_request).with do |method, url, params, body|
2828
assert_equal('POST', method)
29-
assert_equal('foo/_rollup/bar', url)
29+
assert_equal('foo/_downsample/bar', url)
3030
assert_equal({}, params)
3131
assert_equal(body, {})
3232
true
3333
end.returns(FakeResponse.new)
3434

35-
subject.rollup.rollup(body: {}, index: 'foo', rollup_index: 'bar')
35+
subject.indices.downsample(body: {}, index: 'foo', target_index: 'bar')
3636
end
3737

3838
should 'raise argument error without body' do
3939
assert_raises ArgumentError do
40-
subject.rollup.rollup(index: 'foo', rollup_index: 'bar')
40+
subject.indices.downsample(index: 'foo', target_index: 'bar')
4141
end
4242
end
4343

4444
should 'raise argument error without index' do
4545
assert_raises ArgumentError do
46-
subject.rollup.rollup(body: {}, rollup_index: 'bar')
46+
subject.indices.downsample(body: {}, target_index: 'bar')
4747
end
4848
end
4949

5050
should 'raise argument error without rollup_index' do
5151
assert_raises ArgumentError do
52-
subject.rollup.rollup(body: {}, index: 'foo')
52+
subject.indices.downsample(body: {}, index: 'foo')
5353
end
5454
end
5555
end

0 commit comments

Comments
 (0)