Sha256: 355d976d83a508ed735d30e11736a9ba057a0a8e9dd3e1149bf2d58dfe1a9f84

Contents?: true

Size: 574 Bytes

Versions: 4

Compression:

Stored size: 574 Bytes

Contents

require 'helper'
require 'fluent/test/driver/output'

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)
    Fluent::Test::Driver::Output.new(Fluent::Plugin::MysqlReplicatorSolrOutput).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

4 entries across 4 versions & 1 rubygems

Version Path
fluent-plugin-mysql-replicator-1.0.3 test/plugin/test_out_mysql_replicator_solr.rb
fluent-plugin-mysql-replicator-1.0.2 test/plugin/test_out_mysql_replicator_solr.rb
fluent-plugin-mysql-replicator-1.0.1 test/plugin/test_out_mysql_replicator_solr.rb
fluent-plugin-mysql-replicator-1.0.0 test/plugin/test_out_mysql_replicator_solr.rb