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

Version Path
fluentd-0.12.25 test/plugin/test_in_debug_agent.rb
fluentd-0.12.24 test/plugin/test_in_debug_agent.rb
fluentd-0.12.23 test/plugin/test_in_debug_agent.rb
fluentd-0.12.22 test/plugin/test_in_debug_agent.rb
fluentd-0.12.21 test/plugin/test_in_debug_agent.rb
fluentd-0.12.20 test/plugin/test_in_debug_agent.rb
fluentd-0.12.19 test/plugin/test_in_debug_agent.rb
fluentd-0.12.18 test/plugin/test_in_debug_agent.rb
fluentd-0.12.17 test/plugin/test_in_debug_agent.rb
fluentd-0.12.16 test/plugin/test_in_debug_agent.rb
fluentd-0.12.15 test/plugin/test_in_debug_agent.rb
fluentd-0.12.14 test/plugin/test_in_debug_agent.rb
fluentd-0.12.13 test/plugin/test_in_debug_agent.rb
fluentd-0.12.12 test/plugin/test_in_debug_agent.rb
fluentd-0.12.11 test/plugin/test_in_debug_agent.rb
fluentd-0.12.10 test/plugin/test_in_debug_agent.rb
fluentd-0.12.9 test/plugin/test_in_debug_agent.rb
fluentd-0.12.8 test/plugin/test_in_debug_agent.rb
fluentd-0.12.7 test/plugin/test_in_debug_agent.rb
fluentd-0.12.6 test/plugin/test_in_debug_agent.rb