Sha256: 7b51394078f1a045dfb89fca58fdcbf4fa5d72e5b0c4a87fd8554ec4d87565cb

Contents?: true

Size: 367 Bytes

Versions: 9

Compression:

Stored size: 367 Bytes

Contents

# encoding: utf-8

require "logstash/plugin"

describe "inputs/log4j" do

  it "should register" do
    input = LogStash::Plugin.lookup("input", "log4j").new("mode" => "client")

    # register will try to load jars and raise if it cannot find jars or if org.apache.log4j.spi.LoggingEvent class is not present
    expect {input.register}.to_not raise_error
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logstash-input-log4j-1.0.0-java spec/inputs/log4j_spec.rb
logstash-input-log4j-0.1.7-java spec/inputs/log4j_spec.rb
logstash-input-log4j-0.1.6-java spec/inputs/log4j_spec.rb
logstash-input-log4j-0.1.5-java spec/inputs/log4j_spec.rb
logstash-input-log4j-0.1.4-java spec/inputs/log4j_spec.rb
logstash-input-log4j-0.1.3-java spec/inputs/log4j_spec.rb
logstash-input-log4j-0.1.2 spec/inputs/log4j_spec.rb
logstash-input-log4j-0.1.1 spec/inputs/log4j_spec.rb
logstash-input-log4j-0.1.0 spec/inputs/log4j_spec.rb