Sha256: 7b7902138007dd326daeb5e0f073d048ca84ede20a378ec5ab02a304d188302b

Contents?: true

Size: 620 Bytes

Versions: 2

Compression:

Stored size: 620 Bytes

Contents

require "test-unit"
require "fluent/test"
require "fluent/test/driver/output"
require "fluent/test/helpers"
require 'webmock/test_unit'
require 'fluent/plugin/out_tcp'

class TestTcpOutput < Test::Unit::TestCase
  include Fluent::Test::Helpers

  def setup
    Fluent::Test.setup
  end

  def create_driver(conf = CONFIG)
    Fluent::Test::Driver::Output.new(Fluent::Plugin::TcpOutput).configure(conf)
  end

  # def test_no_host_configure
  #   config = %{}
  #   exception = assert_raise(Fluent::ConfigError) {create_driver(config)}
  #   assert_equal("Invalid tcp endpoint hostname: ", exception.message)
  # end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fluent-plugin-tcp-output-1.0.1 test/plugin/test_out_tcp.rb
fluent-plugin-tcp-output-1.0.0 test/plugin/test_out_tcp.rb