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

Couldn't handle EventTime ext type #1

@cosmo0920

Description

@cosmo0920

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)>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions