Sha256: a70c9daffb19c23124d9e8180efe2c483a430a9de4355f1337cb86bd7000f052

Contents?: true

Size: 663 Bytes

Versions: 2

Compression:

Stored size: 663 Bytes

Contents

require 'helper'

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

  ### for Splunk HEC
  CONFIG_SPLUNKHEC = %[
    host splunk.bluefactory.nl
    protocol https
    port 8443
    token BAB747F3-744E-41BA
  ]

  def create_driver_ga(conf = CONFIG_SPLUNKHEC)
    Fluent::Test::InputTestDriver.new(Fluent::SplunkHECOutput).configure(conf)
  end

  def test_configure_splunkhec
    d = create_driver_splunkhec
    assert_equal 'splunk.bluefactory.nl', d.instance.host
    assert_equal 'https' , d.instance.protocol
    assert_equal '8443' , d.instance.port
    assert_equal 'BAB747F3-744E-41BA', d.instance.token
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fluent-plugin-splunkhec-1.0.1 test/plugin/test_out_splunkhec.rb
fluent-plugin-splunkhec-1.0.0 test/plugin/test_out_splunkhec.rb