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.43 test/plugin/test_in_debug_agent.rb
fluentd-0.12.42 test/plugin/test_in_debug_agent.rb
fluentd-0.12.41 test/plugin/test_in_debug_agent.rb
fluentd-0.12.40 test/plugin/test_in_debug_agent.rb
fluentd-0.12.39 test/plugin/test_in_debug_agent.rb
fluentd-0.12.38 test/plugin/test_in_debug_agent.rb
fluentd-0.12.37 test/plugin/test_in_debug_agent.rb
fluentd-0.12.36 test/plugin/test_in_debug_agent.rb
fluent-plugin-detect-memb-exceptions-0.0.2 vendor/bundle/ruby/2.0.0/gems/fluentd-0.12.35/test/plugin/test_in_debug_agent.rb
fluent-plugin-detect-memb-exceptions-0.0.1 vendor/bundle/ruby/2.0.0/gems/fluentd-0.12.35/test/plugin/test_in_debug_agent.rb
fluentd-0.12.35 test/plugin/test_in_debug_agent.rb
fluentd-0.12.34 test/plugin/test_in_debug_agent.rb
fluentd-0.12.33 test/plugin/test_in_debug_agent.rb
fluentd-0.12.32 test/plugin/test_in_debug_agent.rb
fluentd-0.12.31 test/plugin/test_in_debug_agent.rb
fluentd-0.12.30 test/plugin/test_in_debug_agent.rb
fluentd-0.12.29 test/plugin/test_in_debug_agent.rb
fluentd-0.12.28 test/plugin/test_in_debug_agent.rb
fluentd-0.12.27 test/plugin/test_in_debug_agent.rb
fluentd-0.12.26 test/plugin/test_in_debug_agent.rb