Sha256: d0be23cd3fc6863949fc0c99c4bcb834f8efafa353d26bd73eac366068fc6269
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
require_relative "../test_helper" class GcloudPubSubOutputTest < Test::Unit::TestCase def setup Fluent::Test.setup end def create_driver(conf=CONFIG) Fluent::Test::BufferedOutputTestDriver.new(Fluent::GcloudPubSubOutput).configure(conf) end def test_configure d = create_driver(<<-EOC) type gcloud_pubsub project project-test topic topic-test key key-test flush_interval 1 EOC assert_equal('project-test', d.instance.project) assert_equal('topic-test', d.instance.topic) assert_equal('key-test', d.instance.key) assert_equal(1, d.instance.flush_interval) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-gcloud-pubsub-0.0.1 | test/plugin/test_out_gcloud_pubsub.rb |