Sha256: e0e7493527a7f47f2ebe0c2d60852e2553845367ddd2576c5ab1ba980126469d
Contents?: true
Size: 548 Bytes
Versions: 12
Compression:
Stored size: 548 Bytes
Contents
require 'helper' class MysqlReplicatorSolrOutput < Test::Unit::TestCase def setup Fluent::Test.setup end CONFIG = %[ host localhost port 8983 tag_format (?<core_name>[^\.]+)\.(?<event>[^\.]+)\.(?<primary_key>[^\.]+)$ ] def create_driver(conf=CONFIG,tag='test') Fluent::Test::OutputTestDriver.new(Fluent::MysqlReplicatorSolrOutput, tag).configure(conf) end def test_configure d = create_driver(%[]) assert_equal 'localhost', d.instance.host assert_equal 8983, d.instance.port end end
Version data entries
12 entries across 12 versions & 1 rubygems