mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-07 23:07:09 +02:00
33 lines
612 B
Ruby
33 lines
612 B
Ruby
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
|