elasticsearch-test-runner 0.12.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Rakefile +9 -1
- data/lib/elasticsearch/tests/downloader.rb +3 -3
- data/lib/elasticsearch/tests/version.rb +1 -1
- metadata +3 -4
- data/lib/elasticsearch/tasks/download_test_suite.rake +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f62490fd713d82f5dd9206746d3a3dbfaf57cb0ffccd61ca5efadbdf3fb4dd8e
|
4
|
+
data.tar.gz: e3ee9ccb983f74da0e1c55c49997812d332f49760c6af1d8ae33de3078aa8c78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41ff67a4bf679214a2361e92a89873a68d972954b31d0abbafd982b34bf8b6f332ab37dec027960014cdf541c4462c42fa98095e9f22b85d9237eb10e3a72ac7
|
7
|
+
data.tar.gz: 96dabaf5ea2445708b3cd834e6e9fa81e5a17b9df2e3c7d51e6da8594da6be4029e9ef9d8dd0200dd4297bb857df23ce2ac1d65c99533bf3a9218ae54aa43ea6
|
data/CHANGELOG.md
CHANGED
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
|
-
|
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/
|
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
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch-test-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic Client Library Maintainers
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: elasticsearch
|
@@ -52,7 +52,6 @@ files:
|
|
52
52
|
- NOTICE
|
53
53
|
- README.md
|
54
54
|
- Rakefile
|
55
|
-
- lib/elasticsearch/tasks/download_test_suite.rake
|
56
55
|
- lib/elasticsearch/tests.rb
|
57
56
|
- lib/elasticsearch/tests/code_runner.rb
|
58
57
|
- lib/elasticsearch/tests/downloader.rb
|
@@ -82,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
81
|
- !ruby/object:Gem::Version
|
83
82
|
version: '0'
|
84
83
|
requirements: []
|
85
|
-
rubygems_version: 3.6.
|
84
|
+
rubygems_version: 3.6.9
|
86
85
|
specification_version: 4
|
87
86
|
summary: Tool to test Elasticsearch clients against the YAML clients test suite.
|
88
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
|