opensearch-transport 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b809e35525d32ad2894329c5ce3b8baf64d71642e757cc028d7349eca78767e0
4
- data.tar.gz: 02af151d8dbcfdc0e3d3fe7135c3e7cda0ea7d164d54288f719552b20dec80ab
3
+ metadata.gz: 486df12499ed36687f17b069b98ac2338d9d53f7f503923339b8f1dbfc7dfc09
4
+ data.tar.gz: 1435b4c6d75c01b8a0f0fab36ba0edaae8b00ac189eadcc2c285f2e135a2bce7
5
5
  SHA512:
6
- metadata.gz: 95a242a7809cefd6d62a1251251e555d7292868023bfc605ed50bfdb48d4e0718191f0b3f99f5c28318bd2b7669a54a3e8583127f34cb9f1fcdec1f2e54a9826
7
- data.tar.gz: eed74608e96e773770165a6e1a62889391ab14d5837640215e69e1f73bf10b748eeb34fa1e3010a6c84f8494b61291546e99d548a9ef9904b1cb5282808a7fe7
6
+ metadata.gz: e48408e4ba9d03b463f5b1364c905ca944806bb58d5b9274ded620e0bd6d746a1bdc8fe5f31eb0df3f83eb4b5b8201fda19ab7de26402e38bc8fb76906299180
7
+ data.tar.gz: a48c523ccc5b575d9f97cc87367995d6f16ed83977b0634144a30a9d4384cc30ff998f628c7da2ad199caeb2b32ee7084ec6853386a4b1a5bca2a9b6f680211c
checksums.yaml.gz.sig CHANGED
Binary file
@@ -26,6 +26,6 @@
26
26
 
27
27
  module OpenSearch
28
28
  module Transport
29
- VERSION = '1.0.0'.freeze
29
+ VERSION = '2.0.0'.freeze
30
30
  end
31
31
  end
@@ -184,7 +184,7 @@ describe OpenSearch::Transport::Transport::Base do
184
184
 
185
185
  it 'retries on 404 status the specified number of max_retries' do
186
186
  expect do
187
- client.transport.perform_request('GET', 'myindex/mydoc/1?routing=FOOBARBAZ', {}, nil, nil, retry_on_failure: 5)
187
+ client.transport.perform_request('GET', 'myindex/_doc/1?routing=FOOBARBAZ', {}, nil, nil, retry_on_failure: 5)
188
188
  end.to raise_exception(OpenSearch::Transport::Transport::Errors::NotFound)
189
189
  end
190
190
  end
@@ -1680,12 +1680,12 @@ describe OpenSearch::Transport::Client do
1680
1680
  client.perform_request('DELETE', '_all')
1681
1681
  client.perform_request('DELETE', 'myindex') rescue
1682
1682
  client.perform_request('PUT', 'myindex', {}, { settings: { number_of_shards: 2, number_of_replicas: 0 } })
1683
- client.perform_request('PUT', 'myindex/mydoc/1', { routing: 'XYZ', timeout: '1s' }, { foo: 'bar' })
1683
+ client.perform_request('PUT', 'myindex/_doc/1', { routing: 'XYZ', timeout: '1s' }, { foo: 'bar' })
1684
1684
  client.perform_request('GET', '_cluster/health?wait_for_status=green&timeout=2s', {})
1685
1685
  end
1686
1686
 
1687
1687
  let(:response) do
1688
- client.perform_request('GET', 'myindex/mydoc/1?routing=XYZ')
1688
+ client.perform_request('GET', 'myindex/_doc/1?routing=XYZ')
1689
1689
  end
1690
1690
 
1691
1691
  it 'handles paths and URL paramters' do
@@ -1700,7 +1700,7 @@ describe OpenSearch::Transport::Client do
1700
1700
  context 'when an invalid url is specified' do
1701
1701
  it 'raises an exception' do
1702
1702
  expect {
1703
- client.perform_request('GET', 'myindex/mydoc/1?routing=FOOBARBAZ')
1703
+ client.perform_request('GET', 'myindex/_doc/1?routing=FOOBARBAZ')
1704
1704
  }.to raise_exception(OpenSearch::Transport::Transport::Errors::NotFound)
1705
1705
  end
1706
1706
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opensearch-transport
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jayesh Hathila
@@ -33,7 +33,7 @@ cert_chain:
33
33
  yXikuH6LEVykA8pgOcB9gKsB2/zMd2ZlSj2monM8Qw9EfB14ZSDTYS8VYuwWCeF0
34
34
  eFmXXk0ufQFKl1Yll7quHkmQ0PzKkvXTpONBT6qPkXE=
35
35
  -----END CERTIFICATE-----
36
- date: 2021-12-06 00:00:00.000000000 Z
36
+ date: 2022-05-31 00:00:00.000000000 Z
37
37
  dependencies:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: multi_json
metadata.gz.sig CHANGED
Binary file