Sha256: f324bdb0b5b94ea71536b68dd08d9f1ee55da4a16b3479064c0a68b681bc4e0e
Contents?: true
Size: 693 Bytes
Versions: 23
Compression:
Stored size: 693 Bytes
Contents
require 'helper' class KafkaOutputTest < Test::Unit::TestCase def setup Fluent::Test.setup end CONFIG = %[ default_topic kitagawakeiko brokers localhost:9092 ] def create_driver(conf = CONFIG, tag='test') Fluent::Test::BufferedOutputTestDriver.new(Fluent::KafkaOutput, tag).configure(conf) end def test_configure d = create_driver assert_equal 'kitagawakeiko', d.instance.default_topic assert_equal 'localhost:9092', d.instance.brokers end def test_format d = create_driver end def test_write d = create_driver time = Time.parse("2011-01-02 13:14:15 UTC").to_i d.emit({"a"=>1}, time) d.emit({"a"=>2}, time) end end
Version data entries
23 entries across 23 versions & 2 rubygems
Version | Path |
---|---|
fluent-plugin-kafka-0.0.7 | test/plugin/test_out_kafka.rb |
fluent-plugin-kafka-0.0.6 | test/plugin/test_out_kafka.rb |
fluent-plugin-kafka-0.0.5 | test/plugin/test_out_kafka.rb |