fluentd 1.4.2-x64-mingw32 → 1.5.0-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of fluentd might be problematic. Click here for more details.

@@ -111,4 +111,28 @@ class JsonParserTest < ::Test::Unit::TestCase
111
111
  assert_equal text, record['time']
112
112
  end
113
113
  end
114
+
115
+ def test_yajl_parse_io_with_buffer_smaller_than_input
116
+ parser = Fluent::Test::Driver::Parser.new(Fluent::Plugin::JSONParser)
117
+ parser.configure(
118
+ 'keep_time_key' => 'true',
119
+ 'json_parser' => 'yajl',
120
+ 'stream_buffer_size' => 1,
121
+ )
122
+ text = "100"
123
+
124
+ waiting(5) do
125
+ rd, wr = IO.pipe
126
+ wr.write "{\"time\":\"#{text}\"}"
127
+
128
+ parser.instance.parse_io(rd) do |time, record|
129
+ assert_equal text.to_i, time.sec
130
+ assert_equal text, record['time']
131
+
132
+ # Once a record has been received the 'write' end of the pipe must be
133
+ # closed, otherwise the test will block waiting for more input.
134
+ wr.close
135
+ end
136
+ end
137
+ end
114
138
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluentd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.5.0
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-02 00:00:00.000000000 Z
11
+ date: 2019-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -832,8 +832,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
832
832
  - !ruby/object:Gem::Version
833
833
  version: '0'
834
834
  requirements: []
835
- rubyforge_project:
836
- rubygems_version: 2.6.14.1
835
+ rubygems_version: 3.0.3
837
836
  signing_key:
838
837
  specification_version: 4
839
838
  summary: Fluentd event collector