Sha256: 232442c2f98a5d54796aeef0e0aa4b62ecad1d7db1974c99b4cda6952fed4437

Contents?: true

Size: 763 Bytes

Versions: 7

Compression:

Stored size: 763 Bytes

Contents

require 'helper'

class MysqlReplicatorMultiInputTest < Test::Unit::TestCase
  def setup
    Fluent::Test.setup
  end

  CONFIG = %[
    manager_host      localhost
    manager_port      3306
    manager_username  foo
    manager_password  bar
    tag               replicator.${name}.${event}.${primary_key}
  ]

  def create_driver(conf=CONFIG,tag='test')
    Fluent::Test::OutputTestDriver.new(Fluent::MysqlReplicatorMultiInput, tag).configure(conf)
  end

  def test_configure
    assert_raise(Fluent::ConfigError) {
      d = create_driver('')
    }
    d = create_driver(CONFIG)
    assert_equal 'localhost', d.instance.manager_host
    assert_equal 3306, d.instance.manager_port
    assert_equal 'replicator_manager', d.instance.manager_database
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fluent-plugin-mysql-replicator-0.6.2 test/plugin/test_in_mysql_replicator_multi.rb
fluent-plugin-mysql-replicator-0.6.1 test/plugin/test_in_mysql_replicator_multi.rb
fluent-plugin-mysql-replicator-0.5.2 test/plugin/test_in_mysql_replicator_multi.rb
fluent-plugin-mysql-replicator-0.5.1 test/plugin/test_in_mysql_replicator_multi.rb
fluent-plugin-mysql-replicator-0.5.0 test/plugin/test_in_mysql_replicator_multi.rb
fluent-plugin-mysql-replicator-0.4.3 test/plugin/test_in_mysql_replicator_multi.rb
fluent-plugin-mysql-replicator-0.4.2 test/plugin/test_in_mysql_replicator_multi.rb