Sha256: 4e039dd868c280df9ec0aa43d734613e23c7646cdf1a7dab7a3eac582c43251d
Contents?: true
Size: 710 Bytes
Versions: 4
Compression:
Stored size: 710 Bytes
Contents
require_relative '../helper' require 'fluent/test' require 'fluent/plugin/in_debug_agent' 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
4 entries across 4 versions & 1 rubygems