Sha256: d2c058042424cbb28d0806c8de51a2e092c69f8dff866a79c4b2badbfbcf0b9d

Contents?: true

Size: 725 Bytes

Versions: 2

Compression:

Stored size: 725 Bytes

Contents

require 'helper'
require 'webmock/test_unit'
require 'yajl'

WebMock.disable_net_connect!

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

  CONFIG = %[
    type raygun
    endpoint_url      https://api.raygun.com
    api_key           abc123
    hostname_command  hostname -s
    remove_tag_prefix input.
  ]

  def create_driver(conf=CONFIG,tag='test',use_v1=false)
    require 'fluent/version'
    if Gem::Version.new(Fluent::VERSION) < Gem::Version.new('0.12')
      Fluent::Test::OutputTestDriver.new(Fluent::RaygunOutput, tag).configure(conf, use_v1)
    else
      Fluent::Test::BufferedOutputTestDriver.new(Fluent::RaygunOutput, tag).configure(conf, use_v1)
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fluent-plugin-raygun-0.0.2 test/plugin/test_out_raygun.rb
fluent-plugin-raygun-0.0.1 test/plugin/test_out_raygun.rb