Sha256: 1bbfc02a2e6f74b1a675d6aa283bc5b2aa986b50f4da0020febd34abf1bec11d

Contents?: true

Size: 624 Bytes

Versions: 1

Compression:

Stored size: 624 Bytes

Contents

# -*- coding: utf-8 -*-
require 'helper'

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

  CONFIG = %[
    username   test_fluentd
    password   test
    secret_key secret
    handler    http://example.com
    api_url    http://127.0.0.1:5000/api/post/
    template   [<%= tag %>] [<%= Time.at(time).strftime('%Y-%m-%d') %>] <%= record['foo'] %>
  ]

  def create_driver(conf = CONFIG, tag='test')
    Fluent::Test::OutputTestDriver.new(Fluent::ImKayacOutput, tag).configure(conf)
  end

  def test_write
    d = create_driver
#    d.emit({"foo" => "test value of foo"})
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fluent-plugin-imkayac-0.0.1 test/plugin/test_out_imkayac.rb