Sha256: 00d797bfb8956be59a8031746103820412229ce56ebdd55737498d57ca6b6b2b
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
require "logstash/devutils/rspec/spec_helper" require "ftw" require 'elasticsearch' module ESHelper def get_host_port "127.0.0.1:9200" end def get_client Elasticsearch::Client.new(:hosts => [get_host_port]) end def self.es_version_satisfies?(requirement) es_version = RSpec.configuration.filter[:es_version] || ENV['ES_VERSION'] es_release_version = Gem::Version.new(es_version).release Gem::Requirement.new(requirement).satisfied_by?(es_release_version) end end RSpec.configure do |config| config.include ESHelper end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logstash-output-elasticsearch-7.4.1-java | spec/es_spec_helper.rb |