Sha256: 14ebbab42e24289c3d59502f6a15c663372e5c895fc77db7b7b71ca5557a9241
Contents?: true
Size: 639 Bytes
Versions: 2
Compression:
Stored size: 639 Bytes
Contents
require 'helper' class WatchProcessInputTest < Test::Unit::TestCase def setup Fluent::Test.setup end CONFIG = %[ tag input.watch_process ] def create_driver(conf = CONFIG) Fluent::Test::InputTestDriver.new(Fluent::WatchProcessInput).configure(conf) end def test_configure assert_raise(Fluent::ConfigError) { d = create_driver('') } d = create_driver %[ tag input.watch_process lookup_user apache, mycron ] d.instance.inspect assert_equal 'input.watch_process', d.instance.tag assert_equal ['apache', 'mycron'], d.instance.lookup_user end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-watch-process-0.0.3 | test/plugin/test_in_watch_process.rb |
fluent-plugin-watch-process-0.0.2 | test/plugin/test_in_watch_process.rb |