elastic-enterprise-search 8.4.0 → 8.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.buildkite/Dockerfile +13 -0
- data/.buildkite/certs/README.md +50 -0
- data/.buildkite/certs/ca.crt +20 -0
- data/.buildkite/certs/ca.key +27 -0
- data/.buildkite/certs/testnode.crt +21 -0
- data/.buildkite/certs/testnode.key +27 -0
- data/.buildkite/certs/testnode_no_san.crt +19 -0
- data/.buildkite/certs/testnode_no_san.key +27 -0
- data/.buildkite/functions/cleanup.sh +67 -0
- data/.buildkite/functions/imports.sh +60 -0
- data/.buildkite/functions/wait-for-container.sh +36 -0
- data/.buildkite/log-results.sh +15 -0
- data/.buildkite/pipeline.yml +25 -0
- data/.buildkite/run-client.sh +35 -0
- data/.buildkite/run-elasticsearch.sh +150 -0
- data/.buildkite/run-enterprise-search.sh +72 -0
- data/.buildkite/run-tests.sh +24 -0
- data/.ci/.env +9 -0
- data/.ci/docker-compose.yml +166 -0
- data/.ci/jobs/{elastic+enterprise-search-ruby+8.0.yml → elastic+enterprise-search-ruby+8.4.yml} +4 -4
- data/.ci/jobs/{elastic+enterprise-search-ruby+8.1.yml → elastic+enterprise-search-ruby+8.5.yml} +4 -4
- data/.ci/run-kibana.sh +22 -0
- data/.ci/run-stack.sh +1 -0
- data/.ci/test-matrix.yml +1 -1
- data/.github/workflows/rubocop.yml +2 -2
- data/.github/workflows/testing.yml +3 -1
- data/.gitignore +2 -1
- data/README.md +1 -1
- data/docs/guide/release_notes/717.asciidoc +12 -0
- data/docs/guide/release_notes/85.asciidoc +40 -0
- data/docs/guide/release_notes/86.asciidoc +9 -0
- data/docs/guide/release_notes/index.asciidoc +4 -0
- data/elastic-enterprise-search.gemspec +7 -2
- data/lib/elastic/app-search/api/put_search_settings.rb +1 -0
- data/lib/elastic/app-search/api/search_es_search.rb +2 -1
- data/lib/elastic/app-search/api/search_explain.rb +1 -1
- data/lib/elastic/enterprise-search/version.rb +1 -1
- data/spec/app-search/client_spec.rb +1 -28
- data/spec/enterprise-search/client_spec.rb +2 -29
- data/spec/spec_helper.rb +38 -0
- data/spec/workplace-search/client_spec.rb +1 -28
- metadata +89 -11
- data/.ci/jobs/elastic+enterprise-search-ruby+8.2.yml +0 -12
data/spec/spec_helper.rb
CHANGED
@@ -32,6 +32,10 @@ RSpec.configure do |config|
|
|
32
32
|
|
33
33
|
config.add_formatter('documentation')
|
34
34
|
config.add_formatter('RspecJunitFormatter', 'enterprise-search-junit.xml')
|
35
|
+
config.add_formatter(
|
36
|
+
'RSpec::Core::Formatters::HtmlFormatter',
|
37
|
+
"tmp/enterprise-search-#{ENV['SERVICE']}-#{RUBY_VERSION}.html"
|
38
|
+
)
|
35
39
|
|
36
40
|
VCR.configure do |c|
|
37
41
|
c.cassette_library_dir = 'spec/fixtures/vcr'
|
@@ -39,3 +43,37 @@ RSpec.configure do |config|
|
|
39
43
|
c.allow_http_connections_when_no_cassette = true
|
40
44
|
end
|
41
45
|
end
|
46
|
+
|
47
|
+
def is_faraday2?
|
48
|
+
return false unless defined?(Faraday::VERSION)
|
49
|
+
|
50
|
+
Gem::Version.new(Faraday::VERSION) >= Gem::Version.new(2)
|
51
|
+
end
|
52
|
+
|
53
|
+
def hide_constants
|
54
|
+
hide_const('Faraday::Adapter::Patron')
|
55
|
+
hide_const('Patron')
|
56
|
+
hide_const('Faraday::Adapter::Typhoeus')
|
57
|
+
hide_const('Typhoeus')
|
58
|
+
end
|
59
|
+
|
60
|
+
shared_examples 'adapters compatibility' do
|
61
|
+
let(:transport_client) { instance_double(Elastic::Transport::Client) }
|
62
|
+
let(:adapter) { client.transport.transport.connections.all.first.connection.builder.adapter }
|
63
|
+
let(:client) { described_class.new }
|
64
|
+
|
65
|
+
context 'default ' do
|
66
|
+
it 'uses default NetHttp Faraday adapter' do
|
67
|
+
hide_constants
|
68
|
+
expect(adapter).to eq Faraday::Adapter::NetHttp
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
context 'selecting adapter' do
|
73
|
+
it 'uses Typhoeus when specified' do
|
74
|
+
allow(Elastic::Transport::Client).to receive(:new).and_return({})
|
75
|
+
described_class.new(adapter: :typhoeus)
|
76
|
+
expect(Elastic::Transport::Client).to have_received(:new).with(hash_including(adapter: :typhoeus))
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -105,32 +105,5 @@ describe Elastic::EnterpriseSearch::WorkplaceSearch::Client do
|
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
108
|
-
|
109
|
-
let(:client) { described_class.new }
|
110
|
-
let(:adapter) { client.transport.transport.connections.all.first.connection.builder.adapter }
|
111
|
-
|
112
|
-
context 'when no adapter is specified' do
|
113
|
-
it 'uses Faraday NetHttp' do
|
114
|
-
expect(adapter).to eq Faraday::Adapter::NetHttp
|
115
|
-
end
|
116
|
-
end
|
117
|
-
|
118
|
-
context 'when the adapter is patron' do
|
119
|
-
let(:client) { described_class.new(adapter: :patron) }
|
120
|
-
|
121
|
-
it 'uses Faraday with the adapter' do
|
122
|
-
expect(adapter).to eq Faraday::Adapter::Patron
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
unless defined?(JRUBY_VERSION)
|
127
|
-
context 'when the adapter is typhoeus' do
|
128
|
-
let(:client) { described_class.new(adapter: :patron) }
|
129
|
-
|
130
|
-
it 'uses Faraday with the adapter' do
|
131
|
-
expect(adapter).to eq Faraday::Adapter::Patron
|
132
|
-
end
|
133
|
-
end
|
134
|
-
end
|
135
|
-
end
|
108
|
+
include_examples 'adapters compatibility'
|
136
109
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elastic-enterprise-search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fernando Briano
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: elastic-transport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '8'
|
19
|
+
version: '8.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '8'
|
26
|
+
version: '8.1'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: jwt
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -118,16 +118,16 @@ dependencies:
|
|
118
118
|
name: vcr
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
120
120
|
requirements:
|
121
|
-
- - "
|
121
|
+
- - ">="
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
123
|
+
version: '0'
|
124
124
|
type: :development
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
|
-
- - "
|
128
|
+
- - ">="
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version:
|
130
|
+
version: '0'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: webmock
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,6 +142,62 @@ dependencies:
|
|
142
142
|
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
|
+
- !ruby/object:Gem::Dependency
|
146
|
+
name: faraday-httpclient
|
147
|
+
requirement: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '0'
|
152
|
+
type: :development
|
153
|
+
prerelease: false
|
154
|
+
version_requirements: !ruby/object:Gem::Requirement
|
155
|
+
requirements:
|
156
|
+
- - ">="
|
157
|
+
- !ruby/object:Gem::Version
|
158
|
+
version: '0'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: faraday-net_http_persistent
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - ">="
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0'
|
173
|
+
- !ruby/object:Gem::Dependency
|
174
|
+
name: faraday-patron
|
175
|
+
requirement: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
type: :development
|
181
|
+
prerelease: false
|
182
|
+
version_requirements: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
- !ruby/object:Gem::Dependency
|
188
|
+
name: faraday-typhoeus
|
189
|
+
requirement: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - ">="
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '0'
|
194
|
+
type: :development
|
195
|
+
prerelease: false
|
196
|
+
version_requirements: !ruby/object:Gem::Requirement
|
197
|
+
requirements:
|
198
|
+
- - ">="
|
199
|
+
- !ruby/object:Gem::Version
|
200
|
+
version: '0'
|
145
201
|
description: 'Official API client for Elastic Enterprise Search APIs.
|
146
202
|
|
147
203
|
'
|
@@ -151,6 +207,24 @@ executables: []
|
|
151
207
|
extensions: []
|
152
208
|
extra_rdoc_files: []
|
153
209
|
files:
|
210
|
+
- ".buildkite/Dockerfile"
|
211
|
+
- ".buildkite/certs/README.md"
|
212
|
+
- ".buildkite/certs/ca.crt"
|
213
|
+
- ".buildkite/certs/ca.key"
|
214
|
+
- ".buildkite/certs/testnode.crt"
|
215
|
+
- ".buildkite/certs/testnode.key"
|
216
|
+
- ".buildkite/certs/testnode_no_san.crt"
|
217
|
+
- ".buildkite/certs/testnode_no_san.key"
|
218
|
+
- ".buildkite/functions/cleanup.sh"
|
219
|
+
- ".buildkite/functions/imports.sh"
|
220
|
+
- ".buildkite/functions/wait-for-container.sh"
|
221
|
+
- ".buildkite/log-results.sh"
|
222
|
+
- ".buildkite/pipeline.yml"
|
223
|
+
- ".buildkite/run-client.sh"
|
224
|
+
- ".buildkite/run-elasticsearch.sh"
|
225
|
+
- ".buildkite/run-enterprise-search.sh"
|
226
|
+
- ".buildkite/run-tests.sh"
|
227
|
+
- ".ci/.env"
|
154
228
|
- ".ci/.gitignore"
|
155
229
|
- ".ci/Dockerfile"
|
156
230
|
- ".ci/certs/README.md"
|
@@ -160,22 +234,24 @@ files:
|
|
160
234
|
- ".ci/certs/testnode.key"
|
161
235
|
- ".ci/certs/testnode_no_san.crt"
|
162
236
|
- ".ci/certs/testnode_no_san.key"
|
237
|
+
- ".ci/docker-compose.yml"
|
163
238
|
- ".ci/functions/cleanup.sh"
|
164
239
|
- ".ci/functions/imports.sh"
|
165
240
|
- ".ci/functions/wait-for-container.sh"
|
166
241
|
- ".ci/jobs/defaults.yml"
|
167
242
|
- ".ci/jobs/elastic+enterprise-search-ruby+7.17.yml"
|
168
|
-
- ".ci/jobs/elastic+enterprise-search-ruby+8.0.yml"
|
169
|
-
- ".ci/jobs/elastic+enterprise-search-ruby+8.1.yml"
|
170
|
-
- ".ci/jobs/elastic+enterprise-search-ruby+8.2.yml"
|
171
243
|
- ".ci/jobs/elastic+enterprise-search-ruby+8.3.yml"
|
244
|
+
- ".ci/jobs/elastic+enterprise-search-ruby+8.4.yml"
|
245
|
+
- ".ci/jobs/elastic+enterprise-search-ruby+8.5.yml"
|
172
246
|
- ".ci/jobs/elastic+enterprise-search-ruby+main.yml"
|
173
247
|
- ".ci/jobs/elastic+enterprise-search-ruby+pull-request.yml"
|
174
248
|
- ".ci/make.sh"
|
175
249
|
- ".ci/run-elasticsearch.sh"
|
176
250
|
- ".ci/run-enterprise-search.sh"
|
251
|
+
- ".ci/run-kibana.sh"
|
177
252
|
- ".ci/run-local.sh"
|
178
253
|
- ".ci/run-repository.sh"
|
254
|
+
- ".ci/run-stack.sh"
|
179
255
|
- ".ci/run-tests"
|
180
256
|
- ".ci/test-matrix.yml"
|
181
257
|
- ".github/check_license_headers.rb"
|
@@ -213,6 +289,8 @@ files:
|
|
213
289
|
- docs/guide/release_notes/82.asciidoc
|
214
290
|
- docs/guide/release_notes/83.asciidoc
|
215
291
|
- docs/guide/release_notes/84.asciidoc
|
292
|
+
- docs/guide/release_notes/85.asciidoc
|
293
|
+
- docs/guide/release_notes/86.asciidoc
|
216
294
|
- docs/guide/release_notes/index.asciidoc
|
217
295
|
- docs/guide/workplace-search-api.asciidoc
|
218
296
|
- elastic-enterprise-search.gemspec
|
@@ -1,12 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- job:
|
3
|
-
name: elastic+enterprise-search-ruby+8.2
|
4
|
-
display-name: 'elastic / enterprise-search-ruby # 8.2'
|
5
|
-
description: Testing the enterprise-search-ruby 8.2 branch.
|
6
|
-
junit_results: "*-junit.xml"
|
7
|
-
parameters:
|
8
|
-
- string:
|
9
|
-
name: branch_specifier
|
10
|
-
default: refs/heads/8.2
|
11
|
-
description: the Git branch specifier to build (<branchName>, <tagName>,
|
12
|
-
<commitId>, etc.)
|