This repository was archived by the owner on May 20, 2022. It is now read-only.

Description
With the following test code, this plugin couldn't handle EventTime ext8/fixext8 type.
require 'spec_helper'
describe Fluent::TextParser::MsgPackParser do
before(:all) do
Fluent::Test.setup
end
let(:parser) { Fluent::Test::ParserTestDriver.new(Fluent::TextParser::MsgPackParser) }
it 'has a version number' do
expect(File.read(File.join("VERSION")).strip).not_to be nil
end
it 'does something useful' do
parser.configure({})
parser.parse("\x92\xB3test.parser.msgpack\x91\x92\xD7\x00Y0\xF4\xD11\xA5\xFD\xD0\x81\xA7message\xADFluentd v0.14") do |obj|
p obj #
end
expect(false).to eq(true)
end
end
Failures:
1) Fluent::Compat::TextParser::MsgPackParser does something useful
Failure/Error: yield MessagePack.unpack(text)
MessagePack::UnknownExtTypeError:
unexpected extension type
# ./lib/fluent/plugin/parser_msgpack.rb:10:in `unpack'
# ./lib/fluent/plugin/parser_msgpack.rb:10:in `parse'
# ./vendor/bundle/ruby/2.4.0/gems/fluentd-0.14.17/lib/fluent/test/parser_test.rb:66:in `parse'
# ./spec/fluent/plugin/msgpack/parser_spec.rb:15:in `block (2 levels) in <top (required)>'