Sha256: 6776f43bee1a3bc72c574da5f536db876f7c195581dff2f835b8f58ea673b2b7

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

# encoding: utf-8
require_relative '../spec_helper'
require "logstash/filters/mask"

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logstash-filter-mask-0.1.0 spec/filters/mask_spec.rb