Sha256: 49115ef3ba497951a7a70a40312e665392acafc3adeae5c9448e8bca979c3df7
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
require 'helper' class PrestoQueryInputTest < Test::Unit::TestCase def setup Fluent::Test.setup end def create_driver(conf) Fluent::Test::InputTestDriver.new(Fluent::PrestoQueryInput).configure(conf) end def test_configure_full d = create_driver %q{ tag test interval 10m sql "select * from hoge" host presto-cordinator } assert_equal 'test', d.instance.tag assert_equal 10 * 60, d.instance.interval end def test_configure_error_when_config_is_empty assert_raise(Fluent::ConfigError) do create_driver '' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-presto_query-0.0.1 | test/plugin/test_in_presto_query.rb |