elasticsearch-api 8.17.2 → 8.18.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.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/lib/elasticsearch/api/actions/bulk.rb +1 -0
  3. data/lib/elasticsearch/api/actions/cat/help.rb +1 -3
  4. data/lib/elasticsearch/api/actions/cat/segments.rb +2 -0
  5. data/lib/elasticsearch/api/actions/cat/tasks.rb +2 -0
  6. data/lib/elasticsearch/api/actions/create.rb +1 -0
  7. data/lib/elasticsearch/api/actions/eql/search.rb +2 -0
  8. data/lib/elasticsearch/api/actions/esql/async_query_stop.rb +60 -0
  9. data/lib/elasticsearch/api/actions/index.rb +1 -0
  10. data/lib/elasticsearch/api/actions/index_lifecycle_management/delete_lifecycle.rb +1 -3
  11. data/lib/elasticsearch/api/actions/index_lifecycle_management/explain_lifecycle.rb +0 -1
  12. data/lib/elasticsearch/api/actions/index_lifecycle_management/get_lifecycle.rb +1 -3
  13. data/lib/elasticsearch/api/actions/index_lifecycle_management/put_lifecycle.rb +1 -3
  14. data/lib/elasticsearch/api/actions/index_lifecycle_management/start.rb +1 -3
  15. data/lib/elasticsearch/api/actions/index_lifecycle_management/stop.rb +1 -3
  16. data/lib/elasticsearch/api/actions/indices/resolve_cluster.rb +11 -8
  17. data/lib/elasticsearch/api/actions/indices/rollover.rb +0 -1
  18. data/lib/elasticsearch/api/actions/inference/chat_completion_unified.rb +61 -0
  19. data/lib/elasticsearch/api/actions/inference/completion.rb +61 -0
  20. data/lib/elasticsearch/api/actions/inference/put_alibabacloud.rb +69 -0
  21. data/lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb +69 -0
  22. data/lib/elasticsearch/api/actions/inference/put_anthropic.rb +69 -0
  23. data/lib/elasticsearch/api/actions/inference/put_azureaistudio.rb +69 -0
  24. data/lib/elasticsearch/api/actions/inference/put_azureopenai.rb +69 -0
  25. data/lib/elasticsearch/api/actions/inference/put_cohere.rb +65 -0
  26. data/lib/elasticsearch/api/actions/inference/put_elasticsearch.rb +69 -0
  27. data/lib/elasticsearch/api/actions/inference/put_elser.rb +65 -0
  28. data/lib/elasticsearch/api/actions/inference/put_googleaistudio.rb +69 -0
  29. data/lib/elasticsearch/api/actions/inference/put_googlevertexai.rb +69 -0
  30. data/lib/elasticsearch/api/actions/inference/put_hugging_face.rb +69 -0
  31. data/lib/elasticsearch/api/actions/inference/put_jinaai.rb +65 -0
  32. data/lib/elasticsearch/api/actions/inference/put_mistral.rb +69 -0
  33. data/lib/elasticsearch/api/actions/inference/put_openai.rb +65 -0
  34. data/lib/elasticsearch/api/actions/inference/put_voyageai.rb +69 -0
  35. data/lib/elasticsearch/api/actions/inference/put_watsonx.rb +69 -0
  36. data/lib/elasticsearch/api/actions/inference/rerank.rb +61 -0
  37. data/lib/elasticsearch/api/actions/inference/sparse_embedding.rb +61 -0
  38. data/lib/elasticsearch/api/actions/inference/{stream_inference.rb → stream_completion.rb} +5 -12
  39. data/lib/elasticsearch/api/actions/inference/text_embedding.rb +61 -0
  40. data/lib/elasticsearch/api/actions/inference/update.rb +1 -1
  41. data/lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb +1 -3
  42. data/lib/elasticsearch/api/actions/ingest/delete_ip_location_database.rb +1 -3
  43. data/lib/elasticsearch/api/actions/ingest/put_geoip_database.rb +1 -3
  44. data/lib/elasticsearch/api/actions/ingest/put_ip_location_database.rb +1 -3
  45. data/lib/elasticsearch/api/actions/machine_learning/start_trained_model_deployment.rb +2 -1
  46. data/lib/elasticsearch/api/actions/update.rb +1 -0
  47. data/lib/elasticsearch/api/version.rb +1 -1
  48. data/spec/elasticsearch/api/actions/esql/async_query_stop_spec.rb +35 -0
  49. data/spec/elasticsearch/api/actions/indices/resolve_cluster_spec.rb +14 -9
  50. data/spec/elasticsearch/api/actions/inference/chat_completion_unified_spec.rb +36 -0
  51. data/spec/elasticsearch/api/actions/inference/completion_spec.rb +36 -0
  52. data/spec/elasticsearch/api/actions/inference/put_alibabacloud_spec.rb +36 -0
  53. data/spec/elasticsearch/api/actions/inference/put_amazonbedrock_spec.rb +36 -0
  54. data/spec/elasticsearch/api/actions/inference/put_anthropic_spec.rb +36 -0
  55. data/spec/elasticsearch/api/actions/inference/put_azureaistudio_spec.rb +36 -0
  56. data/spec/elasticsearch/api/actions/inference/put_azureopenai_spec.rb +36 -0
  57. data/spec/elasticsearch/api/actions/inference/put_cohere_spec.rb +36 -0
  58. data/spec/elasticsearch/api/actions/inference/put_elasticsearch_spec.rb +36 -0
  59. data/spec/elasticsearch/api/actions/inference/put_elser_spec.rb +36 -0
  60. data/spec/elasticsearch/api/actions/inference/put_googleaistudio_spec.rb +36 -0
  61. data/spec/elasticsearch/api/actions/inference/put_googlevertexai_spec.rb +36 -0
  62. data/spec/elasticsearch/api/actions/inference/put_huggingface_spec.rb +36 -0
  63. data/spec/elasticsearch/api/actions/inference/put_jinaai_spec.rb +36 -0
  64. data/spec/elasticsearch/api/actions/inference/put_mistral_spec.rb +36 -0
  65. data/spec/elasticsearch/api/actions/inference/put_openai_spec.rb +36 -0
  66. data/spec/elasticsearch/api/actions/inference/put_voyageai_spec.rb +36 -0
  67. data/spec/elasticsearch/api/actions/inference/put_watsonx_spec.rb +36 -0
  68. data/spec/elasticsearch/api/actions/inference/rerank_spec.rb +35 -0
  69. data/spec/elasticsearch/api/actions/inference/{stream_inference_spec.rb → sparse_embedding_spec.rb} +4 -4
  70. data/spec/elasticsearch/api/actions/inference/stream_completion_spec.rb +35 -0
  71. data/spec/elasticsearch/api/actions/inference/text_embedding_spec.rb +35 -0
  72. data/spec/elasticsearch/api/actions/inference/update_spec.rb +1 -1
  73. data/spec/elasticsearch/api/actions/ingest/delete_geoip_database_spec.rb +1 -1
  74. data/spec/elasticsearch/api/actions/ingest/delete_ip_location_database_spec.rb +1 -1
  75. data/spec/rest_api/skipped_tests_free.yml +15 -0
  76. data/spec/rest_api/skipped_tests_platinum.yml +13 -0
  77. data/spec/unit/actions/async_search/delete_spec.rb +35 -0
  78. data/spec/unit/actions/async_search/get_spec.rb +35 -0
  79. data/spec/unit/actions/async_search/status_spec.rb +34 -0
  80. data/spec/unit/actions/async_search/submit_spec.rb +87 -0
  81. data/spec/yaml-test-runner/run.rb +4 -1
  82. metadata +79 -5
@@ -0,0 +1,36 @@
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ require 'spec_helper'
19
+
20
+ describe 'client#inference.put_watsonx' do
21
+ let(:expected_args) do
22
+ [
23
+ 'PUT',
24
+ '_inference/foo/bar',
25
+ {},
26
+ nil,
27
+ {},
28
+ { defined_params: { watsonx_inference_id: 'bar', task_type: 'foo' },
29
+ endpoint: 'inference.put_watsonx' }
30
+ ]
31
+ end
32
+
33
+ it 'performs the request' do
34
+ expect(client_double.inference.put_watsonx(task_type: 'foo', watsonx_inference_id: 'bar')).to be_a Elasticsearch::API::Response
35
+ end
36
+ end
@@ -0,0 +1,35 @@
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ require 'spec_helper'
19
+
20
+ describe 'client#inference.rerank' do
21
+ let(:expected_args) do
22
+ [
23
+ 'POST',
24
+ '_inference/rerank/foo',
25
+ {},
26
+ nil,
27
+ {},
28
+ { defined_params: { inference_id: 'foo' }, endpoint: 'inference.rerank' }
29
+ ]
30
+ end
31
+
32
+ it 'performs the request' do
33
+ expect(client_double.inference.rerank(inference_id: 'foo')).to be_a Elasticsearch::API::Response
34
+ end
35
+ end
@@ -17,19 +17,19 @@
17
17
 
18
18
  require 'spec_helper'
19
19
 
20
- describe 'client#inference.stream_inference' do
20
+ describe 'client#inference.sparse_embedding' do
21
21
  let(:expected_args) do
22
22
  [
23
23
  'POST',
24
- '_inference/foo/_stream',
24
+ '_inference/sparse_embedding/foo',
25
25
  {},
26
26
  nil,
27
27
  {},
28
- { defined_params: { inference_id: 'foo' }, endpoint: 'inference.stream_inference' }
28
+ { defined_params: { inference_id: 'foo' }, endpoint: 'inference.sparse_embedding' }
29
29
  ]
30
30
  end
31
31
 
32
32
  it 'performs the request' do
33
- expect(client_double.inference.stream_inference(inference_id: 'foo')).to be_a Elasticsearch::API::Response
33
+ expect(client_double.inference.sparse_embedding(inference_id: 'foo')).to be_a Elasticsearch::API::Response
34
34
  end
35
35
  end
@@ -0,0 +1,35 @@
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ require 'spec_helper'
19
+
20
+ describe 'client#inference.stream_completion' do
21
+ let(:expected_args) do
22
+ [
23
+ 'POST',
24
+ '_inference/completion/foo/_stream',
25
+ {},
26
+ nil,
27
+ {},
28
+ { defined_params: { inference_id: 'foo' }, endpoint: 'inference.stream_completion' }
29
+ ]
30
+ end
31
+
32
+ it 'performs the request' do
33
+ expect(client_double.inference.stream_completion(inference_id: 'foo')).to be_a Elasticsearch::API::Response
34
+ end
35
+ end
@@ -0,0 +1,35 @@
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ require 'spec_helper'
19
+
20
+ describe 'client#inference.text_embedding' do
21
+ let(:expected_args) do
22
+ [
23
+ 'POST',
24
+ '_inference/text_embedding/foo',
25
+ {},
26
+ nil,
27
+ {},
28
+ { defined_params: { inference_id: 'foo' }, endpoint: 'inference.text_embedding' }
29
+ ]
30
+ end
31
+
32
+ it 'performs the request' do
33
+ expect(client_double.inference.text_embedding(inference_id: 'foo')).to be_a Elasticsearch::API::Response
34
+ end
35
+ end
@@ -20,7 +20,7 @@ require 'spec_helper'
20
20
  describe 'client#inference.update' do
21
21
  let(:expected_args) do
22
22
  [
23
- 'POST',
23
+ 'PUT',
24
24
  '_inference/foo/bar/_update',
25
25
  {},
26
26
  nil,
@@ -34,6 +34,6 @@ describe 'client.ingest#delete_geoip_database' do
34
34
  end
35
35
 
36
36
  it 'performs the request' do
37
- expect(client_double.ingest.delete_geoip_database(id: 'foo')).to be_a Elasticsearch::API::Response
37
+ expect(client_double.ingest.delete_geoip_database(id: 'foo', body: {})).to be_a Elasticsearch::API::Response
38
38
  end
39
39
  end
@@ -34,6 +34,6 @@ describe 'client.ingest#delete_ip_location_database' do
34
34
  end
35
35
 
36
36
  it 'performs the request' do
37
- expect(client_double.ingest.delete_ip_location_database(id: 'foo')).to be_a Elasticsearch::API::Response
37
+ expect(client_double.ingest.delete_ip_location_database(id: 'foo', body: {})).to be_a Elasticsearch::API::Response
38
38
  end
39
39
  end
@@ -228,3 +228,18 @@
228
228
  -
229
229
  :file: 'cluster.stats/40_source_modes.yml'
230
230
  :description: 'test source modes'
231
+ -
232
+ :file: 'search/520_fetch_fields.yml'
233
+ :description: 'fetch _seq_no via fields'
234
+ -
235
+ :file: 'indices.recovery/20_synthetic_source.yml'
236
+ :description: 'test recovery empty index with use_synthetic_source'
237
+ -
238
+ :file: 'indices.create/10_basic.yml'
239
+ :description: 'Create lookup index'
240
+ -
241
+ :file: 'indices.create/10_basic.yml'
242
+ :description: 'Create lookup index with one shard'
243
+ -
244
+ :file: 'nodes.stats/11_indices_metrics.yml'
245
+ :description: 'indices mappings exact count test for indices level'
@@ -226,3 +226,16 @@
226
226
  -
227
227
  :file: 'esql/150_lookup.yml'
228
228
  :description: '*'
229
+ # TODO: once migrate is available in spec
230
+ -
231
+ :file: 'migrate/10_reindex.yml'
232
+ :description: '*'
233
+ -
234
+ :file: 'migrate/20_reindex_status.yml'
235
+ :description: '*'
236
+ -
237
+ :file: 'migrate/30_create_from.yml'
238
+ :description: '*'
239
+ -
240
+ :file: 'esql/60_usage.yml'
241
+ :description: 'Basic ESQL usage output (telemetry) snapshot version'
@@ -0,0 +1,35 @@
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ require 'spec_helper'
19
+
20
+ describe 'async_search.delete' do
21
+ let(:expected_args) do
22
+ [
23
+ 'DELETE',
24
+ '_async_search/foo',
25
+ {},
26
+ nil,
27
+ {},
28
+ { endpoint: 'count' }
29
+ ]
30
+ end
31
+
32
+ it 'performs the request' do
33
+ expect(client_double.async_search.delete(id: 'foo')).to be_a Elasticsearch::API::Response
34
+ end
35
+ end
@@ -0,0 +1,35 @@
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+
18
+ require 'spec_helper'
19
+
20
+ describe 'async_search.delete' do
21
+ let(:expected_args) do
22
+ [
23
+ 'GET',
24
+ '_async_search/foo',
25
+ {},
26
+ nil,
27
+ {},
28
+ { endpoint: 'count' }
29
+ ]
30
+ end
31
+
32
+ it 'performs the request' do
33
+ expect(client_double.async_search.get(id: 'foo')).to be_a Elasticsearch::API::Response
34
+ end
35
+ end
@@ -0,0 +1,34 @@
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+ require 'spec_helper'
18
+
19
+ describe 'async_search.delete' do
20
+ let(:expected_args) do
21
+ [
22
+ 'GET',
23
+ '_async_search/status/foo',
24
+ {},
25
+ nil,
26
+ {},
27
+ { endpoint: 'async_search.status' }
28
+ ]
29
+ end
30
+
31
+ it 'performs the request' do
32
+ expect(client_double.async_search.status(id: 'foo')).to be_a Elasticsearch::API::Response
33
+ end
34
+ end
@@ -0,0 +1,87 @@
1
+ # Licensed to Elasticsearch B.V. under one or more contributor
2
+ # license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright
4
+ # ownership. Elasticsearch B.V. licenses this file to you under
5
+ # the Apache License, Version 2.0 (the "License"); you may
6
+ # not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing,
12
+ # software distributed under the License is distributed on an
13
+ # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ # KIND, either express or implied. See the License for the
15
+ # specific language governing permissions and limitations
16
+ # under the License.
17
+ require 'spec_helper'
18
+
19
+ describe 'async_search.submit' do
20
+ context 'with no parameters' do
21
+ let(:expected_args) do
22
+ [
23
+ 'POST',
24
+ '_async_search',
25
+ {},
26
+ nil,
27
+ {},
28
+ { endpoint: 'async_search.submit' }
29
+ ]
30
+ end
31
+
32
+ it 'performs the request' do
33
+ expect(client_double.async_search.submit).to be_a Elasticsearch::API::Response
34
+ end
35
+ end
36
+
37
+ context 'with index' do
38
+ let(:expected_args) do
39
+ [
40
+ 'DELETE',
41
+ '_async_search/foo',
42
+ {},
43
+ nil,
44
+ {},
45
+ { endpoint: 'count' }
46
+ ]
47
+ end
48
+
49
+ it 'performs the request' do
50
+ expect(client_double.async_search.submit).to be_a Elasticsearch::API::Response
51
+ end
52
+ end
53
+ end
54
+
55
+ require 'test_helper'
56
+
57
+ module Elasticsearch
58
+ module Test
59
+ class XPackAsyncSearchSubmit < Minitest::Test
60
+ subject { FakeClient.new }
61
+
62
+ context 'XPack: Async Search Submit' do
63
+ should 'perform correct request' do
64
+ subject.expects(:perform_request).with do |method, url, params, body|
65
+ assert_equal('POST', method)
66
+ assert_equal('_async_search', url)
67
+ assert_equal({}, params)
68
+ assert_nil(body)
69
+ end.returns(FakeResponse.new)
70
+
71
+ subject.async_search.submit
72
+ end
73
+
74
+ should 'perform correct request with index' do
75
+ subject.expects(:perform_request).with do |method, url, params, body|
76
+ assert_equal('POST', method)
77
+ assert_equal('foo/_async_search', url)
78
+ assert_equal({}, params)
79
+ assert_nil(body)
80
+ end.returns(FakeResponse.new)
81
+
82
+ subject.async_search.submit(index: 'foo')
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
@@ -64,4 +64,7 @@ logger.level = Logger::WARN unless ENV['DEBUG']
64
64
  current_branch = `git rev-parse --abbrev-ref HEAD`.strip
65
65
  branch = current_branch.match(/[0-9]\.[0-9]+/)&.[](0) || ENV['ES_YAML_TESTS_BRANCH'] || nil
66
66
  Elasticsearch::Tests::Downloader::run(tests_path, branch)
67
- Elasticsearch::Tests::TestRunner.new(CLIENT, tests_path, logger).run
67
+
68
+ runner = Elasticsearch::Tests::TestRunner.new(CLIENT, tests_path, logger)
69
+ runner.add_tests_to_skip('inference/10_basic.yml') # TODO: Extract into file
70
+ runner.run
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.17.2
4
+ version: 8.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic Client Library Maintainers
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-07 00:00:00.000000000 Z
10
+ date: 2025-04-15 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: multi_json
@@ -481,6 +481,7 @@ files:
481
481
  - lib/elasticsearch/api/actions/esql/async_query.rb
482
482
  - lib/elasticsearch/api/actions/esql/async_query_delete.rb
483
483
  - lib/elasticsearch/api/actions/esql/async_query_get.rb
484
+ - lib/elasticsearch/api/actions/esql/async_query_stop.rb
484
485
  - lib/elasticsearch/api/actions/esql/query.rb
485
486
  - lib/elasticsearch/api/actions/exists.rb
486
487
  - lib/elasticsearch/api/actions/exists_source.rb
@@ -573,11 +574,32 @@ files:
573
574
  - lib/elasticsearch/api/actions/indices/unfreeze.rb
574
575
  - lib/elasticsearch/api/actions/indices/update_aliases.rb
575
576
  - lib/elasticsearch/api/actions/indices/validate_query.rb
577
+ - lib/elasticsearch/api/actions/inference/chat_completion_unified.rb
578
+ - lib/elasticsearch/api/actions/inference/completion.rb
576
579
  - lib/elasticsearch/api/actions/inference/delete.rb
577
580
  - lib/elasticsearch/api/actions/inference/get.rb
578
581
  - lib/elasticsearch/api/actions/inference/inference.rb
579
582
  - lib/elasticsearch/api/actions/inference/put.rb
580
- - lib/elasticsearch/api/actions/inference/stream_inference.rb
583
+ - lib/elasticsearch/api/actions/inference/put_alibabacloud.rb
584
+ - lib/elasticsearch/api/actions/inference/put_amazonbedrock.rb
585
+ - lib/elasticsearch/api/actions/inference/put_anthropic.rb
586
+ - lib/elasticsearch/api/actions/inference/put_azureaistudio.rb
587
+ - lib/elasticsearch/api/actions/inference/put_azureopenai.rb
588
+ - lib/elasticsearch/api/actions/inference/put_cohere.rb
589
+ - lib/elasticsearch/api/actions/inference/put_elasticsearch.rb
590
+ - lib/elasticsearch/api/actions/inference/put_elser.rb
591
+ - lib/elasticsearch/api/actions/inference/put_googleaistudio.rb
592
+ - lib/elasticsearch/api/actions/inference/put_googlevertexai.rb
593
+ - lib/elasticsearch/api/actions/inference/put_hugging_face.rb
594
+ - lib/elasticsearch/api/actions/inference/put_jinaai.rb
595
+ - lib/elasticsearch/api/actions/inference/put_mistral.rb
596
+ - lib/elasticsearch/api/actions/inference/put_openai.rb
597
+ - lib/elasticsearch/api/actions/inference/put_voyageai.rb
598
+ - lib/elasticsearch/api/actions/inference/put_watsonx.rb
599
+ - lib/elasticsearch/api/actions/inference/rerank.rb
600
+ - lib/elasticsearch/api/actions/inference/sparse_embedding.rb
601
+ - lib/elasticsearch/api/actions/inference/stream_completion.rb
602
+ - lib/elasticsearch/api/actions/inference/text_embedding.rb
581
603
  - lib/elasticsearch/api/actions/inference/update.rb
582
604
  - lib/elasticsearch/api/actions/info.rb
583
605
  - lib/elasticsearch/api/actions/ingest/delete_geoip_database.rb
@@ -1009,6 +1031,7 @@ files:
1009
1031
  - spec/elasticsearch/api/actions/esql/async_query_delete_spec.rb
1010
1032
  - spec/elasticsearch/api/actions/esql/async_query_get._spec.rb
1011
1033
  - spec/elasticsearch/api/actions/esql/async_query_spec.rb
1034
+ - spec/elasticsearch/api/actions/esql/async_query_stop_spec.rb
1012
1035
  - spec/elasticsearch/api/actions/esql/query_spec.rb
1013
1036
  - spec/elasticsearch/api/actions/exists_document_spec.rb
1014
1037
  - spec/elasticsearch/api/actions/explain_document_spec.rb
@@ -1069,11 +1092,32 @@ files:
1069
1092
  - spec/elasticsearch/api/actions/indices/unfreeze_spec.rb
1070
1093
  - spec/elasticsearch/api/actions/indices/update_aliases_spec.rb
1071
1094
  - spec/elasticsearch/api/actions/indices/validate_query_spec.rb
1095
+ - spec/elasticsearch/api/actions/inference/chat_completion_unified_spec.rb
1096
+ - spec/elasticsearch/api/actions/inference/completion_spec.rb
1072
1097
  - spec/elasticsearch/api/actions/inference/delete_spec.rb
1073
1098
  - spec/elasticsearch/api/actions/inference/get_spec.rb
1074
1099
  - spec/elasticsearch/api/actions/inference/inference_spec.rb
1100
+ - spec/elasticsearch/api/actions/inference/put_alibabacloud_spec.rb
1101
+ - spec/elasticsearch/api/actions/inference/put_amazonbedrock_spec.rb
1102
+ - spec/elasticsearch/api/actions/inference/put_anthropic_spec.rb
1103
+ - spec/elasticsearch/api/actions/inference/put_azureaistudio_spec.rb
1104
+ - spec/elasticsearch/api/actions/inference/put_azureopenai_spec.rb
1105
+ - spec/elasticsearch/api/actions/inference/put_cohere_spec.rb
1106
+ - spec/elasticsearch/api/actions/inference/put_elasticsearch_spec.rb
1107
+ - spec/elasticsearch/api/actions/inference/put_elser_spec.rb
1108
+ - spec/elasticsearch/api/actions/inference/put_googleaistudio_spec.rb
1109
+ - spec/elasticsearch/api/actions/inference/put_googlevertexai_spec.rb
1110
+ - spec/elasticsearch/api/actions/inference/put_huggingface_spec.rb
1111
+ - spec/elasticsearch/api/actions/inference/put_jinaai_spec.rb
1112
+ - spec/elasticsearch/api/actions/inference/put_mistral_spec.rb
1113
+ - spec/elasticsearch/api/actions/inference/put_openai_spec.rb
1075
1114
  - spec/elasticsearch/api/actions/inference/put_spec.rb
1076
- - spec/elasticsearch/api/actions/inference/stream_inference_spec.rb
1115
+ - spec/elasticsearch/api/actions/inference/put_voyageai_spec.rb
1116
+ - spec/elasticsearch/api/actions/inference/put_watsonx_spec.rb
1117
+ - spec/elasticsearch/api/actions/inference/rerank_spec.rb
1118
+ - spec/elasticsearch/api/actions/inference/sparse_embedding_spec.rb
1119
+ - spec/elasticsearch/api/actions/inference/stream_completion_spec.rb
1120
+ - spec/elasticsearch/api/actions/inference/text_embedding_spec.rb
1077
1121
  - spec/elasticsearch/api/actions/inference/update_spec.rb
1078
1122
  - spec/elasticsearch/api/actions/info_spec.rb
1079
1123
  - spec/elasticsearch/api/actions/ingest/delete_geoip_database_spec.rb
@@ -1370,6 +1414,10 @@ files:
1370
1414
  - spec/rest_api/skipped_tests_platinum.yml
1371
1415
  - spec/rspec_formatter.rb
1372
1416
  - spec/spec_helper.rb
1417
+ - spec/unit/actions/async_search/delete_spec.rb
1418
+ - spec/unit/actions/async_search/get_spec.rb
1419
+ - spec/unit/actions/async_search/status_spec.rb
1420
+ - spec/unit/actions/async_search/submit_spec.rb
1373
1421
  - spec/yaml-test-runner/run.rb
1374
1422
  - utils/Gemfile
1375
1423
  - utils/README.md
@@ -1497,6 +1545,7 @@ test_files:
1497
1545
  - spec/elasticsearch/api/actions/esql/async_query_delete_spec.rb
1498
1546
  - spec/elasticsearch/api/actions/esql/async_query_get._spec.rb
1499
1547
  - spec/elasticsearch/api/actions/esql/async_query_spec.rb
1548
+ - spec/elasticsearch/api/actions/esql/async_query_stop_spec.rb
1500
1549
  - spec/elasticsearch/api/actions/esql/query_spec.rb
1501
1550
  - spec/elasticsearch/api/actions/exists_document_spec.rb
1502
1551
  - spec/elasticsearch/api/actions/explain_document_spec.rb
@@ -1557,11 +1606,32 @@ test_files:
1557
1606
  - spec/elasticsearch/api/actions/indices/unfreeze_spec.rb
1558
1607
  - spec/elasticsearch/api/actions/indices/update_aliases_spec.rb
1559
1608
  - spec/elasticsearch/api/actions/indices/validate_query_spec.rb
1609
+ - spec/elasticsearch/api/actions/inference/chat_completion_unified_spec.rb
1610
+ - spec/elasticsearch/api/actions/inference/completion_spec.rb
1560
1611
  - spec/elasticsearch/api/actions/inference/delete_spec.rb
1561
1612
  - spec/elasticsearch/api/actions/inference/get_spec.rb
1562
1613
  - spec/elasticsearch/api/actions/inference/inference_spec.rb
1614
+ - spec/elasticsearch/api/actions/inference/put_alibabacloud_spec.rb
1615
+ - spec/elasticsearch/api/actions/inference/put_amazonbedrock_spec.rb
1616
+ - spec/elasticsearch/api/actions/inference/put_anthropic_spec.rb
1617
+ - spec/elasticsearch/api/actions/inference/put_azureaistudio_spec.rb
1618
+ - spec/elasticsearch/api/actions/inference/put_azureopenai_spec.rb
1619
+ - spec/elasticsearch/api/actions/inference/put_cohere_spec.rb
1620
+ - spec/elasticsearch/api/actions/inference/put_elasticsearch_spec.rb
1621
+ - spec/elasticsearch/api/actions/inference/put_elser_spec.rb
1622
+ - spec/elasticsearch/api/actions/inference/put_googleaistudio_spec.rb
1623
+ - spec/elasticsearch/api/actions/inference/put_googlevertexai_spec.rb
1624
+ - spec/elasticsearch/api/actions/inference/put_huggingface_spec.rb
1625
+ - spec/elasticsearch/api/actions/inference/put_jinaai_spec.rb
1626
+ - spec/elasticsearch/api/actions/inference/put_mistral_spec.rb
1627
+ - spec/elasticsearch/api/actions/inference/put_openai_spec.rb
1563
1628
  - spec/elasticsearch/api/actions/inference/put_spec.rb
1564
- - spec/elasticsearch/api/actions/inference/stream_inference_spec.rb
1629
+ - spec/elasticsearch/api/actions/inference/put_voyageai_spec.rb
1630
+ - spec/elasticsearch/api/actions/inference/put_watsonx_spec.rb
1631
+ - spec/elasticsearch/api/actions/inference/rerank_spec.rb
1632
+ - spec/elasticsearch/api/actions/inference/sparse_embedding_spec.rb
1633
+ - spec/elasticsearch/api/actions/inference/stream_completion_spec.rb
1634
+ - spec/elasticsearch/api/actions/inference/text_embedding_spec.rb
1565
1635
  - spec/elasticsearch/api/actions/inference/update_spec.rb
1566
1636
  - spec/elasticsearch/api/actions/info_spec.rb
1567
1637
  - spec/elasticsearch/api/actions/ingest/delete_geoip_database_spec.rb
@@ -1858,4 +1928,8 @@ test_files:
1858
1928
  - spec/rest_api/skipped_tests_platinum.yml
1859
1929
  - spec/rspec_formatter.rb
1860
1930
  - spec/spec_helper.rb
1931
+ - spec/unit/actions/async_search/delete_spec.rb
1932
+ - spec/unit/actions/async_search/get_spec.rb
1933
+ - spec/unit/actions/async_search/status_spec.rb
1934
+ - spec/unit/actions/async_search/submit_spec.rb
1861
1935
  - spec/yaml-test-runner/run.rb