mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
33 lines
1.1 KiB
Ruby
33 lines
1.1 KiB
Ruby
# encoding: utf-8
|
|
require 'runner-tool'
|
|
require_relative '../../rspec/helpers'
|
|
require_relative '../../rspec/matchers'
|
|
require_relative 'config_helper'
|
|
require_relative "../../platform_config"
|
|
|
|
ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..'))
|
|
$LOAD_PATH.unshift File.join(ROOT, 'logstash-core/lib')
|
|
|
|
RunnerTool.configure
|
|
|
|
RSpec.configure do |c|
|
|
c.include ServiceTester
|
|
end
|
|
|
|
platform = ENV['LS_TEST_PLATFORM'] || 'all'
|
|
experimental = (ENV['LS_QA_EXPERIMENTAL_OS'].to_s.downcase || "false") == "true"
|
|
|
|
config = PlatformConfig.new
|
|
LOGSTASH_LATEST_VERSION = config.latest
|
|
|
|
default_vagrant_boxes = ( platform == 'all' ? config.platforms : config.filter_type(platform, {"experimental" => experimental}) )
|
|
|
|
selected_boxes = if ENV.include?('LS_VAGRANT_HOST') then
|
|
config.platforms.select { |p| p.name == ENV['LS_VAGRANT_HOST'] }
|
|
else
|
|
default_vagrant_boxes
|
|
end
|
|
|
|
SpecsHelper.configure(selected_boxes)
|
|
|
|
puts "[Acceptance specs] running on #{ServiceTester.configuration.hosts}" if !selected_boxes.empty?
|