logstash-codec-rfc6587 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/codecs/rfc6587.rb +4 -1
- data/logstash-codec-rfc6587.gemspec +1 -1
- data/spec/codecs/rfc6587_spec.rb +11 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35642c5e5db8b142c4afb325b96fb4cd24cf9b5f711c61476d601c382dcf4e57
|
4
|
+
data.tar.gz: 294de35a68a24b131e6fec7035d784161698c8ba82fee4fb676de7f763031aa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48e8171e101c400fb9c42050a1b8303d0c920f567872e02bf76f003fdad211137fd42e8688b755148744dd2fef834a0e47b3169336a3e4273978c7509e168677
|
7
|
+
data.tar.gz: 51c30b54a8546cb2297c6d3ce8baccd297a16fa975c950ff6464cd801a8a6467485c5c6e6687410ccb3f9aa59c5c65c507bce8f55bedfb7bd73c2d1cf09868c6
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
|
3
3
|
s.name = 'logstash-codec-rfc6587'
|
4
|
-
s.version = '0.1.
|
4
|
+
s.version = '0.1.4'
|
5
5
|
s.licenses = ['Apache License (2.0)']
|
6
6
|
s.summary = "Reads lines as described in rfc6587"
|
7
7
|
s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
|
data/spec/codecs/rfc6587_spec.rb
CHANGED
@@ -96,6 +96,17 @@ describe LogStash::Codecs::Rfc6587, :ecs_compatibility_support do
|
|
96
96
|
expect(result[2].get("message")).to eq("line3")
|
97
97
|
end
|
98
98
|
|
99
|
+
it "should parse partial batches" do
|
100
|
+
result = []
|
101
|
+
subject.decode("5 line15 line") { |e| result << e }
|
102
|
+
subject.decode("25 line3") { |e| result << e }
|
103
|
+
subject.flush { |e| result << e }
|
104
|
+
expect(result.size).to eq(3)
|
105
|
+
expect(result[0].get("message")).to eq("line1")
|
106
|
+
expect(result[1].get("message")).to eq("line2")
|
107
|
+
expect(result[2].get("message")).to eq("line3")
|
108
|
+
end
|
109
|
+
|
99
110
|
ecs_compatibility_matrix(:disabled, :v1, :v8 => :v1) do |ecs_select|
|
100
111
|
|
101
112
|
before(:each) do
|