Sha256: cf65e6dbb3bce08d35ee84e54280105a72bd816a0ebc0f81396c972e79437a6a
Contents?: true
Size: 721 Bytes
Versions: 1
Compression:
Stored size: 721 Bytes
Contents
# encoding: utf-8 require "logstash/devutils/rspec/spec_helper" require "logstash/event" require "logstash/codecs/s3_plain" describe LogStash::Codecs::S3Plain do subject { LogStash::Codecs::S3Plain.new } describe "#encode" do it 'should accept a nil list for the tags' do subject.on_event do |data| expect(data).to match(/\nTags:\s\n/) end subject.encode(LogStash::Event.new) end it 'should accept a list of tags' do event = LogStash::Event.new({"tags" => ["elasticsearch", "logstash", "kibana"] }) subject.on_event do |data| expect(data).to match(/\nTags:\selasticsearch,\slogstash,\skibana\n/) end subject.encode(event) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logstash-codec-s3plain-2.0.7 | spec/codecs/s3_plain_spec.rb |