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:

Version: 1.4.2-1-2c0f5a1 

/ opt / logstash / spec / outputs / elasticsearch_river.rb

# encoding: utf-8

require "logstash/plugin"

describe "outputs/elasticsearch_river" do

  it "should register" do
    output = LogStash::Plugin.lookup("output", "elasticsearch_river").new("es_host" => "localhost", "rabbitmq_host" => "localhost")
    output.stub(:prepare_river)

    # register will try to load jars and raise if it cannot find jars
    expect {output.register}.to_not raise_error
  end
end