Sha256: cdd49fcd72b02315e7c600a3c13bedae46f2ecd8eaf50a5a2f2ade2111be5cf8
Contents?: true
Size: 966 Bytes
Versions: 2
Compression:
Stored size: 966 Bytes
Contents
require 'helper' class MysqlReplicatorInputTest < Test::Unit::TestCase def setup Fluent::Test.setup end CONFIG = %[ host localhost port 3306 interval 30 tag input.mysql query SELECT id, text from search_text record_hostname yes ] def create_driver(conf=CONFIG,tag='test') Fluent::Test::OutputTestDriver.new(Fluent::MysqlReplicatorInput, tag).configure(conf) end def test_configure assert_raise(Fluent::ConfigError) { d = create_driver('') } d = create_driver %[ host localhost port 3306 interval 30 tag input.mysql query SELECT id, text from search_text ] d.instance.inspect assert_equal 'localhost', d.instance.host assert_equal 3306, d.instance.port assert_equal 30, d.instance.interval assert_equal 'input.mysql', d.instance.tag end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-mysql-replicator-0.0.2 | test/plugin/test_in_mysql_replicator.rb |
fluent-plugin-mysql-replicator-0.0.1 | test/plugin/test_in_mysql_replicator.rb |