Sha256: b66081598e40bca977ef7c428dd2eacafe9764ac166901333ab63e5e080195f7

Contents?: true

Size: 612 Bytes

Versions: 6

Compression:

Stored size: 612 Bytes

Contents

require_relative '../helper'
require 'fluent/test/driver/output'
require 'fluent/plugin/out_null'

class NullOutputTest < Test::Unit::TestCase
  def setup
    Fluent::Test.setup
  end

  def create_driver(conf = "")
    Fluent::Test::Driver::Output.new(Fluent::Plugin::NullOutput).configure(conf)
  end

  def test_configure
    assert_nothing_raised do
      create_driver
    end
  end

  def test_process
    d = create_driver
    assert_nothing_raised do
      d.run do
        d.feed("test", Fluent::EventTime.now, {"test" => "null"})
      end
    end
    assert_equal([], d.events(tag: "test"))
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fluentd-0.14.4-x64-mingw32 test/plugin/test_out_null.rb
fluentd-0.14.4-x86-mingw32 test/plugin/test_out_null.rb
fluentd-0.14.4 test/plugin/test_out_null.rb
fluentd-0.14.3 test/plugin/test_out_null.rb
fluentd-0.14.2 test/plugin/test_out_null.rb
fluentd-0.14.1 test/plugin/test_out_null.rb