Sha256: 3a721cdedca6ead1f853f9e3397bdd4dbc077df95ee9616db65a2fe2d0df614d
Contents?: true
Size: 649 Bytes
Versions: 43
Compression:
Stored size: 649 Bytes
Contents
require_relative '../helper' require 'fileutils' class DebugAgentInputTest < Test::Unit::TestCase def setup Fluent::Test.setup FileUtils.rm_rf(TMP_DIR) FileUtils.mkdir_p(TMP_DIR) end TMP_DIR = File.expand_path(File.dirname(__FILE__) + "/../tmp/in_debug_agent") def create_driver(conf = '') Fluent::Test::InputTestDriver.new(Fluent::DebugAgentInput).configure(conf) end def test_unix_path_writable assert_nothing_raised do create_driver %[unix_path #{TMP_DIR}/test_path] end assert_raise(Fluent::ConfigError) do create_driver %[unix_path #{TMP_DIR}/does_not_exist/test_path] end end end
Version data entries
43 entries across 43 versions & 2 rubygems