Sha256: 68342eaf35825482b9b64da07775518f7ce63cc5e4c9f31bb715118b1025f157
Contents?: true
Size: 537 Bytes
Versions: 1
Compression:
Stored size: 537 Bytes
Contents
require 'fluent/test' require 'net/http' class DstatInputTest < Test::Unit::TestCase def setup Fluent::Test.setup end CONFIG = %[ tag dstat option -fcdnm 1 ] def create_driver(conf=CONFIG) Fluent::Test::InputTestDriver.new(Fluent::DstatInput).configure(conf) end def test_configure d = create_driver assert_equal "-fcdnm 1", d.instance.option end def test_emit d = create_driver d.run do sleep 2 end emits = d.emits assert_equal true, emits.length > 0 end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-dstat-0.0.2 | test/plugin/test_in_dstat.rb |