Sha256: a3c414c9a644fe10776b6fc8de90f74dbbde43b4861c54ee5a654d87b12f2d84

Contents?: true

Size: 599 Bytes

Versions: 1

Compression:

Stored size: 599 Bytes

Contents

require 'helper'

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

  CONFIG = %[
  ]

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

  def test_configure
    d = create_driver('')
    #assert_equal "pleasechangeme.com", d.instance.endpoint
    #assert_equal "username", d.instance.user
    #assert_equal "password", d.instance.pass
    assert_equal "300".to_i, d.instance.interval
    assert_equal "false", d.instance.include_raw
    assert_equal 'alert.spectrum', d.instance.tag
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fluent-plugin-spectrum-0.0.5 test/plugin/test_in_spectrum.rb