elasticsearch-test-runner 0.11.0 → 0.13.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0271385db599d8551f6a83a8cc3c349fb9e9e419404e2a6551ad1a79a609530b'
4
- data.tar.gz: d7c7a28831431f41c3b60b63fa6a0f56ce6683b87bbaabd7531414e3cd45e12b
3
+ metadata.gz: f62490fd713d82f5dd9206746d3a3dbfaf57cb0ffccd61ca5efadbdf3fb4dd8e
4
+ data.tar.gz: e3ee9ccb983f74da0e1c55c49997812d332f49760c6af1d8ae33de3078aa8c78
5
5
  SHA512:
6
- metadata.gz: bf8130ff5fd1161285c9f9c0bcecd545ea10e2c28788febf0e19ff180c3088eec9090b7dc73da0d7902f7c3cef88a0617aa24079ac737ec80e7733662606dfa7
7
- data.tar.gz: 296a138149fb4c1fd8388dff6ab0ebcf492daf07650c5b2c5df865d7bf99227dc3b450097474a6c55be2bb511a6bb1e6cc38c93a3358a88a86d357855c880e8f
6
+ metadata.gz: 41ff67a4bf679214a2361e92a89873a68d972954b31d0abbafd982b34bf8b6f332ab37dec027960014cdf541c4462c42fa98095e9f22b85d9237eb10e3a72ac7
7
+ data.tar.gz: 96dabaf5ea2445708b3cd834e6e9fa81e5a17b9df2e3c7d51e6da8594da6be4029e9ef9d8dd0200dd4297bb857df23ce2ac1d65c99533bf3a9218ae54aa43ea6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.13.0] - 2025-06-05
4
+
5
+ - Moves download tests file to Rakefile (namespace is unchanged).
6
+ - Updates Elasticsearch Clients Tests repo URL.
7
+
8
+ ## [0.12.0] - 2025-01-14
9
+
10
+ - Check TEST_SUITE variable for `serverless`.
11
+
3
12
  ## [0.11.0] - 2024-12-12
4
13
 
5
14
  - Adds skipping tests.
data/Rakefile CHANGED
@@ -16,5 +16,13 @@
16
16
  # under the License.
17
17
 
18
18
  require 'bundler/gem_tasks'
19
+ require 'elasticsearch/tests/downloader'
19
20
  task default: %i[]
20
- Dir.glob('lib/elasticsearch/tasks/**/*.rake').each { |f| import f }
21
+
22
+ namespace :es_tests do
23
+ desc 'Download YAML test files'
24
+ task :download do |_, args|
25
+ tests_path = args[:path] || File.expand_path('./tmp', __dir__)
26
+ Elasticsearch::Tests::Downloader::run(tests_path)
27
+ end
28
+ end
@@ -24,9 +24,9 @@ module Elasticsearch
24
24
  class << self
25
25
  FILENAME = 'tests.tar.gz'.freeze
26
26
 
27
- def run(path, branch = 'main')
28
- delete_files(path)
29
- url = "https://api.github.com/repos/elastic/serverless-clients-tests/tarball/#{branch}"
27
+ def run(path, branch = 'main', delete: false)
28
+ delete_files(path) if delete
29
+ url = "https://api.github.com/repos/elastic/elasticsearch-clients-tests/tarball/#{branch}"
30
30
  if download_tests(url)
31
31
  puts "Successfully downloaded #{FILENAME}"
32
32
  else
@@ -29,7 +29,8 @@ module Elasticsearch
29
29
 
30
30
  def initialize(client, path = nil, logger = nil)
31
31
  @client = client
32
- @serverless = defined?(::ElasticsearchServerless) && client.is_a?(::ElasticsearchServerless::Client)
32
+ @serverless = defined?(::ElasticsearchServerless) && client.is_a?(::ElasticsearchServerless::Client) ||
33
+ ENV['TEST_SUITE'] == 'serverless'
33
34
  @path = path || File.expand_path('./tmp', __dir__)
34
35
  @logger = logger || LOGGER
35
36
  @tests_to_skip = []
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Elasticsearch
21
21
  module Tests
22
- VERSION = '0.11.0'
22
+ VERSION = '0.13.0'
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-test-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic Client Library Maintainers
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-12-12 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: elasticsearch
@@ -53,7 +52,6 @@ files:
53
52
  - NOTICE
54
53
  - README.md
55
54
  - Rakefile
56
- - lib/elasticsearch/tasks/download_test_suite.rake
57
55
  - lib/elasticsearch/tests.rb
58
56
  - lib/elasticsearch/tests/code_runner.rb
59
57
  - lib/elasticsearch/tests/downloader.rb
@@ -69,7 +67,6 @@ metadata:
69
67
  homepage_uri: https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/current/index.html
70
68
  changelog_uri: https://github.com/elastic/es-test-runner-ruby/blob/main/CHANGELOG.md
71
69
  source_code_uri: https://github.com/elastic/es-test-runner-ruby/tree/main
72
- post_install_message:
73
70
  rdoc_options: []
74
71
  require_paths:
75
72
  - lib
@@ -84,8 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
81
  - !ruby/object:Gem::Version
85
82
  version: '0'
86
83
  requirements: []
87
- rubygems_version: 3.5.20
88
- signing_key:
84
+ rubygems_version: 3.6.9
89
85
  specification_version: 4
90
86
  summary: Tool to test Elasticsearch clients against the YAML clients test suite.
91
87
  test_files: []
@@ -1,25 +0,0 @@
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 'elasticsearch/tests/downloader'
18
-
19
- namespace :es_tests do
20
- desc 'Download YAML test files'
21
- task :download do |_, args|
22
- tests_path = args[:path] || File.expand_path('../../tmp', __dir__)
23
- Elasticsearch::Tests::Downloader::run(tests_path)
24
- end
25
- end