Sha256: 217e272f3c841221f7927977475b8bc3ba64acf21a7f92d5badf7b1b245f3036

Contents?: true

Size: 402 Bytes

Versions: 11

Compression:

Stored size: 402 Bytes

Contents

# encoding: utf-8
require 'spec_helper'
require "logstash/filters/example"

describe LogStash::Filters::Example do
  describe "Set to Hello World" do
    let(:config) do <<-CONFIG
      filter {
        example {
          message => "Hello World"
        }
      }
    CONFIG
    end

    sample("message" => "some text") do
      expect(subject.get("message")).to eq('Hello World')
    end
  end
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
logstash-filter-cidrtagmap-2.3.0 spec/filters/example_spec.rb
logstash-filter-myplugin001-3.0.2 spec/filters/muplugin001_spec.rb
logstash-filter-categoriser-1.0.0 spec/filters/example_spec.rb
logstash-filter-cidrtagmap-2.2.2 spec/filters/example_spec.rb
logstash-filter-cidrtagmap-2.2.1 spec/filters/example_spec.rb
logstash-filter-cidrtagmap-2.2.0 spec/filters/example_spec.rb
logstash-filter-cidrtagmap-2.1.0 spec/filters/example_spec.rb
logstash-filter-cidrtagmap-2.0.0 spec/filters/example_spec.rb
logstash-filter-cidrtagmap-1.2.0 spec/filters/example_spec.rb
logstash-filter-cidrtagmap-1.1.0 spec/filters/example_spec.rb
logstash-filter-example-3.0.1 spec/filters/example_spec.rb