Sha256: f064d6bdc863f45b7479b5f0e8cb363af8c7454cfd6029df4a26155ce810f769
Contents?: true
Size: 913 Bytes
Versions: 5
Compression:
Stored size: 913 Bytes
Contents
require_relative "../test_helper" class GcloudPubSubInputTest < Test::Unit::TestCase def setup Fluent::Test.setup end def create_driver(conf=CONFIG) Fluent::Test::InputTestDriver.new(Fluent::GcloudPubSubInput).configure(conf) end def test_configure d = create_driver(<<-EOC) type gcloud_pubsub tag test project project-test topic topic-test subscription subscription-test key key-test max_messages 1000 return_immediately true pull_interval 2 format json EOC assert_equal('test', d.instance.tag) assert_equal('project-test', d.instance.project) assert_equal('topic-test', d.instance.topic) assert_equal('subscription-test', d.instance.subscription) assert_equal('key-test', d.instance.key) assert_equal(1000, d.instance.max_messages) assert_equal(true, d.instance.return_immediately) end end
Version data entries
5 entries across 5 versions & 1 rubygems