Sha256: 61a8a035eaabc36ccc465155e59b0193cec1b9d8124a56851a410221791046f7

Contents?: true

Size: 486 Bytes

Versions: 3

Compression:

Stored size: 486 Bytes

Contents

require 'helper'

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

  CONFIG = %[
    host 0
    port 1062
    tag alert.spectrum
  ]

  def create_driver(conf=CONFIG)
    Fluent::Test::InputTestDriver.new(Fluent::SpectrumInput).configure(conf)
  end

  def test_configure
    d = create_driver('')
    assert_equal "0".to_i, d.instance.host
    assert_equal "1062".to_i, d.instance.port
    assert_equal 'alert.spectrum', d.instance.tag
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fluent-plugin-spectrum-0.0.3 test/plugin/test_in_spectrum.rb
fluent-plugin-spectrum-0.0.2 test/plugin/test_in_spectrum.rb
fluent-plugin-spectrum-0.0.1 test/plugin/test_in_spectrum.rb