Sha256: caa99cbab1eaa2c79c21b2a9c6bebf2b39eff98c9d400596b4335d997c774c0d
Contents?: true
Size: 610 Bytes
Versions: 1
Compression:
Stored size: 610 Bytes
Contents
require 'helper' require 'fluent/plugin/out_grpc' class GrpcOutputTest < Test::Unit::TestCase def setup Fluent::Test.setup end CONFIG = %[ path localhost:50051 ] def create_driver(conf=CONFIG) Fluent::Test::Driver::Output.new(Fluent::Plugin::GrpcOutput).configure(conf) end sub_test_case 'configured with invalid configurations' do test 'empty config' do assert_raise Fluent::ConfigError do create_driver(%[]) end end test 'path is set correctly' do d = create_driver assert_equal "localhost:50051", d.instance.path end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fluent-plugin-grpc-0.0.2 | test/plugin/test_out_grpc.rb |