Skip to content

Extracts YAML test Runner #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ steps:
ruby_source:
- 'ruby'
adjustments:
- with:
ruby_source: 'jruby'
ruby: '9.3'
- with:
ruby_source: 'jruby'
ruby: '9.4'
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ namespace :spec do

desc 'Run YAML test runner'
task :yaml do
ruby './spec/yaml-test-runner/runner.rb'
ruby './spec/yaml-test-runner/run.rb'
end
end

Expand Down Expand Up @@ -112,7 +112,7 @@ rescue StandardError => e
abort "[!!!] #{e.class} : #{e.message}"
end

desc "Server info"
desc 'Server info'
task :info do
require 'elasticsearch-serverless'
client = ElasticsearchServerless::Client.new(url: ENV['ELASTICSEARCH_URL'], api_key: ENV['API_KEY'])
Expand Down
14 changes: 7 additions & 7 deletions elasticsearch-serverless.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
require_relative './lib/elasticsearch-serverless/version.rb'

Gem::Specification.new do |s|
s.name = "elasticsearch-serverless"
s.name = 'elasticsearch-serverless'
s.version = ElasticsearchServerless::VERSION
s.summary = "Elasticsearch Serverless Client"
s.authors = ["Fernando Briano"]
s.email = "[email protected]"
s.summary = 'Elasticsearch Serverless Client'
s.authors = ['Fernando Briano']
s.email = '[email protected]'
s.files = Dir['lib/**/*.rb']
s.homepage =
"https://rubygems.org/gems/elasticsearch-serverless"
s.license = "Apache-2.0"
s.homepage = 'https://rubygems.org/gems/elasticsearch-serverless'
s.license = 'Apache-2.0'

s.add_dependency 'elastic-transport', '~> 8'

s.add_development_dependency 'debug', '>= 1.0.0' unless defined?(JRUBY_VERSION)
s.add_development_dependency 'elasticsearch-test-runner'
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec'
s.add_development_dependency 'faraday-net_http_persistent'
Expand Down
223 changes: 0 additions & 223 deletions spec/yaml-test-runner/code_runner.rb

This file was deleted.

69 changes: 0 additions & 69 deletions spec/yaml-test-runner/printer.rb

This file was deleted.

18 changes: 12 additions & 6 deletions spec/yaml-test-runner/errors.rb → spec/yaml-test-runner/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@
# specific language governing permissions and limitations
# under the License.

module Elastic
module TestRunner
class TestFailure < StandardError; end
class TestError < StandardError; end
end
end
require 'logger'
require 'elasticsearch/tests/test_runner'
require 'elasticsearch/tests/downloader'
require_relative '../spec_helper'

tests_path = File.expand_path('../../tmp', __dir__)

logger = Logger.new($stdout)
logger.level = Logger::WARN unless ENV['DEBUG']

Elasticsearch::Tests::Downloader::run(tests_path)
Elasticsearch::Tests::TestRunner.new(CLIENT, tests_path, logger).run
Loading
Loading