logstash-input-http_poller 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -1
- data/lib/logstash/inputs/http_poller.rb +1 -0
- data/logstash-input-http_poller.gemspec +2 -2
- data/spec/inputs/http_poller_spec.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be8d40ddad581f2259c10aca4689effe57c77031
|
4
|
+
data.tar.gz: be1d671303288aeaf7f35e1407c9471725c696d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c319eb5ab0d614a25f7054a3defb670805fd22abb9724e69813d673cbf44e1d006a073921b1d59ada3c855874c33a3ae4485c0dcd2ef55566ca237ad75f96ae4
|
7
|
+
data.tar.gz: 31122f1e4723a548b717105f8a1848923921e741cc8f86880caa78c8d30460c431a5d36fcbef0af0eb4f2ddd42e6951fc5373533e76cf4f09a4472a99179b0a6
|
data/CHANGELOG.md
CHANGED
@@ -162,6 +162,7 @@ class LogStash::Inputs::HTTP_Poller < LogStash::Inputs::Base
|
|
162
162
|
private
|
163
163
|
def handle_decoded_event(queue, name, request, response, event, execution_time)
|
164
164
|
apply_metadata(event, name, request, response, execution_time)
|
165
|
+
decorate(event)
|
165
166
|
queue << event
|
166
167
|
rescue StandardError, java.lang.Exception => e
|
167
168
|
@logger.error? && @logger.error("Error eventifying response!",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-input-http_poller'
|
3
|
-
s.version = '1.0.
|
3
|
+
s.version = '1.0.2'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "Poll HTTP endpoints with Logstash."
|
6
6
|
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program."
|
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.add_runtime_dependency 'logstash-mixin-http_client', ">= 1.0.0"
|
24
24
|
s.add_runtime_dependency 'stud'
|
25
25
|
s.add_runtime_dependency 'manticore'
|
26
|
-
|
26
|
+
|
27
27
|
s.add_development_dependency 'logstash-devutils'
|
28
28
|
s.add_development_dependency 'flores'
|
29
29
|
end
|
@@ -230,6 +230,7 @@ describe LogStash::Inputs::HTTP_Poller do
|
|
230
230
|
:body => LogStash::Json.dump(payload),
|
231
231
|
:code => code
|
232
232
|
)
|
233
|
+
allow(instance).to receive(:decorate)
|
233
234
|
instance.send(:run_once, queue)
|
234
235
|
end
|
235
236
|
|
@@ -237,6 +238,10 @@ describe LogStash::Inputs::HTTP_Poller do
|
|
237
238
|
expect(event.to_hash).to include(payload)
|
238
239
|
end
|
239
240
|
|
241
|
+
it "should decorate the event" do
|
242
|
+
expect(instance).to have_received(:decorate).once
|
243
|
+
end
|
244
|
+
|
240
245
|
include_examples("matching metadata")
|
241
246
|
|
242
247
|
context "with metadata omitted" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-input-http_poller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- andrewvc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core
|