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

Version Path
fluent-plugin-mysql-replicator-0.6.2 test/plugin/test_out_mysql_replicator_solr.rb
fluent-plugin-mysql-replicator-0.6.1 test/plugin/test_out_mysql_replicator_solr.rb
fluent-plugin-mysql-replicator-0.5.2 test/plugin/test_out_mysql_replicator_solr.rb
fluent-plugin-mysql-replicator-0.5.1 test/plugin/test_out_mysql_replicator_solr.rb
fluent-plugin-mysql-replicator-0.5.0 test/plugin/test_out_mysql_replicator_solr.rb
fluent-plugin-mysql-replicator-0.4.3 test/plugin/test_out_mysql_replicator_solr.rb
fluent-plugin-mysql-replicator-0.4.2 test/plugin/test_out_mysql_replicator_solr.rb
fluent-plugin-mysql-replicator-0.4.1 test/plugin/test_out_mysql_replicator_solr.rb
fluent-plugin-mysql-replicator-0.4.0 test/plugin/test_out_mysql_replicator_solr.rb
fluent-plugin-mysql-replicator-0.3.1 test/plugin/test_out_mysql_replicator_solr.rb
fluent-plugin-mysql-replicator-0.3.0 test/plugin/test_out_mysql_replicator_solr.rb
fluent-plugin-mysql-replicator-0.2.3 test/plugin/test_out_mysql_replicator_solr.rb