opensearch-api 2.1.0 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,53 +0,0 @@
1
- # SPDX-License-Identifier: Apache-2.0
2
- #
3
- # The OpenSearch Contributors require contributions made to
4
- # this file be licensed under the Apache-2.0 license or a
5
- # compatible open source license.
6
- #
7
- # Modifications Copyright OpenSearch Contributors. See
8
- # GitHub history for details.
9
- #
10
- # Licensed to Elasticsearch B.V. under one or more contributor
11
- # license agreements. See the NOTICE file distributed with
12
- # this work for additional information regarding copyright
13
- # ownership. Elasticsearch B.V. licenses this file to you under
14
- # the Apache License, Version 2.0 (the "License"); you may
15
- # not use this file except in compliance with the License.
16
- # You may obtain a copy of the License at
17
- #
18
- # http://www.apache.org/licenses/LICENSE-2.0
19
- #
20
- # Unless required by applicable law or agreed to in writing,
21
- # software distributed under the License is distributed on an
22
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23
- # KIND, either express or implied. See the License for the
24
- # specific language governing permissions and limitations
25
- # under the License.
26
-
27
- require 'spec_helper'
28
-
29
- describe 'client#open_point_in_time' do
30
- let(:expected_args) do
31
- [
32
- 'POST',
33
- url,
34
- {},
35
- nil,
36
- {}
37
- ]
38
- end
39
-
40
- let (:url) { '_pit'}
41
-
42
- it 'performs the request' do
43
- expect(client_double.open_point_in_time).to eq({})
44
- end
45
-
46
- context 'with index' do
47
- let (:url) { 'foo/_pit'}
48
-
49
- it 'performs the request' do
50
- expect(client_double.open_point_in_time(index: 'foo')).to eq({})
51
- end
52
- end
53
- end