Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

vistahigherlearning / logstash   deb

Repository URL to install this package:

/ opt / logstash / spec / jar.rb

require "insist"

describe "logstash jar features", :if => (__FILE__ =~ /file:.*!/) do
  let(:jar_root) { __FILE__.split("!").first + "!" }

  it "must be only run from a jar" do
    insist { __FILE__ } =~ /file:.*!/
  end

  it "must contain GeoLiteCity.dat" do
    path = File.join(jar_root, "GeoLiteCity.dat")
    insist { File }.exists?(path)
  end

  it "must contain vendor/ua-parser/regexes.yaml" do
    path = File.join(jar_root, "vendor/ua-parser/regexes.yaml")
    insist { File }.exists?(path)
  end

  it "must successfully load aws-sdk (LOGSTASH-1718)" do
    require "aws-sdk"
    # trigger autoload
    AWS::Errors
    AWS::Record
    AWS::Core::AsyncHandle
  end
end