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