logstash-core-event-java 5.0.0.alpha4.snapshot2-java → 5.0.0.alpha4.snapshot3-java
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29664d9a26c763a60369e33abf286734a64ae359
|
4
|
+
data.tar.gz: 27de52f8bc8a3ca7f790705d7e5a15676d4bebbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f7b6de81311919a43eaea4469cb80c8d14fe4425ac7ab599b5cf2e923172010dc47b8ca73dcb525c4a04f58b41d14bb486376bb4eba3448629178c014da610d
|
7
|
+
data.tar.gz: c92a3a899ffa7073c6fc553a242b7a0019f56d3ffc316129dae5474791be554b37b1ad6871b1eab14c702a6bf436b11c2d2fe37b4fcba2cdebd074208ce4a04a
|
Binary file
|
data/spec/event_spec.rb
CHANGED
@@ -5,6 +5,7 @@ require "logstash/util"
|
|
5
5
|
require "logstash/event"
|
6
6
|
require "json"
|
7
7
|
require "java"
|
8
|
+
# java_import 'com.logstash.Util'
|
8
9
|
|
9
10
|
TIMESTAMP = "@timestamp"
|
10
11
|
|
@@ -112,6 +113,32 @@ describe LogStash::Event do
|
|
112
113
|
expect(e.get("foo")).to be_kind_of(Bignum)
|
113
114
|
expect(e.get("foo")).to eq(-9223372036854776000)
|
114
115
|
end
|
116
|
+
|
117
|
+
it "should set XXJavaProxy Jackson crafted" do
|
118
|
+
proxy = com.logstash.Util.getMapFixtureJackson()
|
119
|
+
# proxy is {"string": "foo", "int": 42, "float": 42.42, "array": ["bar","baz"], "hash": {"string":"quux"} }
|
120
|
+
e = LogStash::Event.new()
|
121
|
+
e.set("[proxy]", proxy)
|
122
|
+
expect(e.get("[proxy][string]")).to eql("foo")
|
123
|
+
expect(e.get("[proxy][int]")).to eql(42)
|
124
|
+
expect(e.get("[proxy][float]")).to eql(42.42)
|
125
|
+
expect(e.get("[proxy][array][0]")).to eql("bar")
|
126
|
+
expect(e.get("[proxy][array][1]")).to eql("baz")
|
127
|
+
expect(e.get("[proxy][hash][string]")).to eql("quux")
|
128
|
+
end
|
129
|
+
|
130
|
+
it "should set XXJavaProxy hand crafted" do
|
131
|
+
proxy = com.logstash.Util.getMapFixtureHandcrafted()
|
132
|
+
# proxy is {"string": "foo", "int": 42, "float": 42.42, "array": ["bar","baz"], "hash": {"string":"quux"} }
|
133
|
+
e = LogStash::Event.new()
|
134
|
+
e.set("[proxy]", proxy)
|
135
|
+
expect(e.get("[proxy][string]")).to eql("foo")
|
136
|
+
expect(e.get("[proxy][int]")).to eql(42)
|
137
|
+
expect(e.get("[proxy][float]")).to eql(42.42)
|
138
|
+
expect(e.get("[proxy][array][0]")).to eql("bar")
|
139
|
+
expect(e.get("[proxy][array][1]")).to eql("baz")
|
140
|
+
expect(e.get("[proxy][hash][string]")).to eql("quux")
|
141
|
+
end
|
115
142
|
end
|
116
143
|
|
117
144
|
context "timestamp" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-core-event-java
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.0.alpha4.
|
4
|
+
version: 5.0.0.alpha4.snapshot3
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|