Sha256: 2fd595fdb148a18e8146e073f9979bc03f9ab7f194be731b7b2cebb1fba87902

Contents?: true

Size: 612 Bytes

Versions: 5

Compression:

Stored size: 612 Bytes

Contents

require "test_helper"

require "fluent/plugin/buf_file"

module Fluentd::Setting
  class OutStdoutTest < ActiveSupport::TestCase
    setup do
      @klass = Fluentd::Setting::OutStdout
      @instance = @klass.new({})
    end

    test "#valid?" do
      assert do
        @instance.valid?
      end
    end

    test "#plugin_name" do
      assert_equal("stdout", @instance.plugin_name)
    end

    test "#plugin_type" do
      assert_equal("output", @instance.plugin_type)
    end

    test "#to_config" do
      assert do
        @instance.to_config.to_s.include?("@type stdout")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fluentd-ui-1.2.1 test/models/fluentd/setting/out_stdout_test.rb
fluentd-ui-1.2.0 test/models/fluentd/setting/out_stdout_test.rb
fluentd-ui-1.1.0 test/models/fluentd/setting/out_stdout_test.rb
fluentd-ui-1.0.1 test/models/fluentd/setting/out_stdout_test.rb
fluentd-ui-1.0.0 test/models/fluentd/setting/out_stdout_test.rb