opensearch-ruby 1.0.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of opensearch-ruby might be problematic. Click here for more details.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +1 -1
- data/README.md +2 -0
- data/lib/opensearch/version.rb +1 -1
- data/opensearch.gemspec +2 -2
- data/spec/integration/security_disabled/validation_integration_spec.rb +1 -1
- data/spec/unit/opensearch_product_validation_spec.rb +5 -5
- data.tar.gz.sig +0 -0
- metadata +8 -8
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d4f98e77ae003dc420b5f08f9fd84c48686595334234292db7892190c53ef86
|
4
|
+
data.tar.gz: e5007d84daddd7a74e236e9c129bd2affbf69fa3865a0a474f0d762c474adff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a20c390852f61417b2ae5c25e8e01445410ee43614848d409d40d6c85968d947500c313bd7c66fa19b0694dae475273a54e4d133ec5aea01a1068f22d70f0157
|
7
|
+
data.tar.gz: 5f983a021750df743ea48b178f39f1e55ebbe79f66f82f0d9f0ce24d743e32ecb69a3170c0ba8a4d34f7a9994eccdd2271f2c61944dc32961f9434af80a80d25
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
�2̅i�2Qy���a��ox?~~�E�lU:�����$i��F� o�|Y��O9����1(&���6�nﲁ���=��v͚���)HE���P�v}-��ZL��{���M���l�P�;XC�,a�A�O$`s�v�#<���;81� /������bh!��lJ�D�AnZ��Yx(�5X����M7k#��bf����i���h������/W�FP��!U�x�*ȧ"�༿��5n�6�
|
data/README.md
CHANGED
@@ -20,6 +20,8 @@ The OpenSearch client for Ruby is compatible with Ruby 1.9 and higher.
|
|
20
20
|
|
21
21
|
The client's API is compatible with OpenSearch's API versions from 1.0.0 till current.
|
22
22
|
|
23
|
+
See [COMPATIBILITY](../COMPATIBILITY.md) for more details.
|
24
|
+
|
23
25
|
## Installation
|
24
26
|
|
25
27
|
Install the package from [Rubygems](https://rubygems.org):
|
data/lib/opensearch/version.rb
CHANGED
data/opensearch.gemspec
CHANGED
@@ -61,8 +61,8 @@ Gem::Specification.new do |s|
|
|
61
61
|
|
62
62
|
s.required_ruby_version = '>= 2.4'
|
63
63
|
|
64
|
-
s.add_dependency 'opensearch-transport', '
|
65
|
-
s.add_dependency 'opensearch-api', '
|
64
|
+
s.add_dependency 'opensearch-transport', '2.0.0'
|
65
|
+
s.add_dependency 'opensearch-api', '2.0.0'
|
66
66
|
|
67
67
|
s.add_development_dependency 'bundler'
|
68
68
|
s.add_development_dependency 'byebug' unless defined?(JRUBY_VERSION) || defined?(Rubinius)
|
@@ -27,7 +27,7 @@ require 'spec_helper'
|
|
27
27
|
require 'logger'
|
28
28
|
|
29
29
|
describe 'OpenSearch validation integration' do
|
30
|
-
it 'Validates for OpenSearch
|
30
|
+
it 'Validates for OpenSearch' do
|
31
31
|
client = OpenSearch::Client.new(
|
32
32
|
host: OPENSEARCH_URL,
|
33
33
|
logger: Logger.new($stderr)
|
@@ -84,7 +84,7 @@ describe 'OpenSearch: Validation' do
|
|
84
84
|
end
|
85
85
|
end
|
86
86
|
|
87
|
-
context 'When
|
87
|
+
context 'When OpenSearch replies with status 403' do
|
88
88
|
let(:status) { 403 }
|
89
89
|
let(:body) { {}.to_json }
|
90
90
|
|
@@ -105,9 +105,9 @@ describe 'OpenSearch: Validation' do
|
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
108
|
-
context 'When the OpenSearch version is
|
108
|
+
context 'When the OpenSearch version is 2.0.0' do
|
109
109
|
context 'With a valid OpenSearch response' do
|
110
|
-
let(:body) { { 'version' => { 'number' => '
|
110
|
+
let(:body) { { 'version' => { 'number' => '2.0.0', 'distribution' => 'opensearch' } }.to_json }
|
111
111
|
let(:headers) do
|
112
112
|
{
|
113
113
|
'content-type' => 'json'
|
@@ -123,7 +123,7 @@ describe 'OpenSearch: Validation' do
|
|
123
123
|
end
|
124
124
|
|
125
125
|
context 'When the distribution is not present' do
|
126
|
-
let(:body) { { 'version' => { 'number' => '
|
126
|
+
let(:body) { { 'version' => { 'number' => '2.0.0' } }.to_json }
|
127
127
|
it 'Fails validation' do
|
128
128
|
verify_request_stub
|
129
129
|
|
@@ -187,7 +187,7 @@ describe 'OpenSearch: Validation' do
|
|
187
187
|
end
|
188
188
|
|
189
189
|
let(:headers) { { 'content-type' => 'application/yaml'} }
|
190
|
-
let(:body) { "---\nversion:\n number: \"
|
190
|
+
let(:body) { "---\nversion:\n number: \"2.0.0\"\n distribution: \"opensearch\"\n" }
|
191
191
|
|
192
192
|
it 'validates' do
|
193
193
|
verify_request_stub
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opensearch-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jayesh Hathila
|
@@ -33,36 +33,36 @@ cert_chain:
|
|
33
33
|
yXikuH6LEVykA8pgOcB9gKsB2/zMd2ZlSj2monM8Qw9EfB14ZSDTYS8VYuwWCeF0
|
34
34
|
eFmXXk0ufQFKl1Yll7quHkmQ0PzKkvXTpONBT6qPkXE=
|
35
35
|
-----END CERTIFICATE-----
|
36
|
-
date: 2022-
|
36
|
+
date: 2022-05-31 00:00:00.000000000 Z
|
37
37
|
dependencies:
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
39
|
name: opensearch-transport
|
40
40
|
requirement: !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
|
-
- -
|
42
|
+
- - '='
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version:
|
44
|
+
version: 2.0.0
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
|
-
- -
|
49
|
+
- - '='
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version:
|
51
|
+
version: 2.0.0
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
53
|
name: opensearch-api
|
54
54
|
requirement: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
56
|
- - '='
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version:
|
58
|
+
version: 2.0.0
|
59
59
|
type: :runtime
|
60
60
|
prerelease: false
|
61
61
|
version_requirements: !ruby/object:Gem::Requirement
|
62
62
|
requirements:
|
63
63
|
- - '='
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
65
|
+
version: 2.0.0
|
66
66
|
- !ruby/object:Gem::Dependency
|
67
67
|
name: bundler
|
68
68
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|