logstash-mixin-http_client 2.2.3 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/lib/logstash/plugin_mixins/http_client.rb +2 -3
- data/logstash-mixin-http_client.gemspec +1 -1
- data/spec/plugin_mixin/http_client_spec.rb +20 -0
- metadata +34 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6ebc4ba3873fe4b2dddc38666e9c4287fa8d910
|
4
|
+
data.tar.gz: 800252ded48460e7b0921ddab5c8bcd7a50149e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41a28a1a449abebdb5a8bdb20ae81ffb5460b7e5643f7798f216fb4e1dd272e7163a669efcccc90ee4bef2223087c66a6599d4d3ee1447cfe60fd7d1e2c7e34e
|
7
|
+
data.tar.gz: 3d67ee9ce3bc9695e0014762bdd6fb39e0ac6d20c367c2a60b015565e46632c1c7907e9c74154b3de5b20ef04b0ab3cc7e85ab6347300eebeab78702877b17bf
|
data/CHANGELOG.md
CHANGED
@@ -109,8 +109,7 @@ module LogStash::PluginMixins::HttpClient
|
|
109
109
|
pool_max: @pool_max,
|
110
110
|
pool_max_per_route: @pool_max_per_route,
|
111
111
|
cookies: @cookies,
|
112
|
-
keepalive: @keepalive
|
113
|
-
verify: @ssl_certificate_validation
|
112
|
+
keepalive: @keepalive
|
114
113
|
}
|
115
114
|
|
116
115
|
if @proxy
|
@@ -120,7 +119,7 @@ module LogStash::PluginMixins::HttpClient
|
|
120
119
|
@proxy
|
121
120
|
end
|
122
121
|
|
123
|
-
c[:ssl] = {}
|
122
|
+
c[:ssl] = {verify: @ssl_certificate_validation}
|
124
123
|
if @cacert
|
125
124
|
c[:ssl][:ca_file] = @cacert
|
126
125
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-mixin-http_client'
|
3
|
-
s.version = '2.2.
|
3
|
+
s.version = '2.2.4'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "AWS mixins to provide a unified interface for Amazon Webservice"
|
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"
|
@@ -137,5 +137,25 @@ describe LogStash::PluginMixins::HttpClient do
|
|
137
137
|
include_examples("raising a configuration error")
|
138
138
|
end
|
139
139
|
|
140
|
+
describe "ssl certificate validation" do
|
141
|
+
subject { Dummy.new(conf).send(:client_config) }
|
142
|
+
|
143
|
+
context "when set to true" do
|
144
|
+
let(:conf) { basic_config.merge("ssl_certificate_validation" => true)}
|
145
|
+
|
146
|
+
it "should set [:ssl][:verify] to true" do
|
147
|
+
expect(subject[:ssl][:verify]).to eql(true)
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
151
|
+
context "when set to false" do
|
152
|
+
let(:conf) { basic_config.merge("ssl_certificate_validation" => false)}
|
153
|
+
|
154
|
+
it "should set [:ssl][:verify] to true" do
|
155
|
+
expect(subject[:ssl][:verify]).to eql(false)
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
140
160
|
end
|
141
161
|
end
|
metadata
CHANGED
@@ -1,91 +1,91 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-mixin-http_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: logstash-core-plugin-api
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
14
20
|
requirement: !ruby/object:Gem::Requirement
|
15
21
|
requirements:
|
16
|
-
- -
|
22
|
+
- - ~>
|
17
23
|
- !ruby/object:Gem::Version
|
18
24
|
version: '1.0'
|
19
|
-
name: logstash-core-plugin-api
|
20
25
|
prerelease: false
|
21
26
|
type: :runtime
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: logstash-codec-plain
|
22
29
|
version_requirements: !ruby/object:Gem::Requirement
|
23
30
|
requirements:
|
24
|
-
- -
|
31
|
+
- - '>='
|
25
32
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
27
|
-
- !ruby/object:Gem::Dependency
|
33
|
+
version: '0'
|
28
34
|
requirement: !ruby/object:Gem::Requirement
|
29
35
|
requirements:
|
30
|
-
- -
|
36
|
+
- - '>='
|
31
37
|
- !ruby/object:Gem::Version
|
32
38
|
version: '0'
|
33
|
-
name: logstash-codec-plain
|
34
39
|
prerelease: false
|
35
40
|
type: :runtime
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: manticore
|
36
43
|
version_requirements: !ruby/object:Gem::Requirement
|
37
44
|
requirements:
|
38
|
-
- -
|
45
|
+
- - '>='
|
39
46
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
-
-
|
47
|
+
version: 0.5.2
|
48
|
+
- - <
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 1.0.0
|
42
51
|
requirement: !ruby/object:Gem::Requirement
|
43
52
|
requirements:
|
44
|
-
- -
|
53
|
+
- - '>='
|
45
54
|
- !ruby/object:Gem::Version
|
46
55
|
version: 0.5.2
|
47
|
-
- -
|
56
|
+
- - <
|
48
57
|
- !ruby/object:Gem::Version
|
49
58
|
version: 1.0.0
|
50
|
-
name: manticore
|
51
59
|
prerelease: false
|
52
60
|
type: :runtime
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: logstash-devutils
|
53
63
|
version_requirements: !ruby/object:Gem::Requirement
|
54
64
|
requirements:
|
55
|
-
- -
|
65
|
+
- - '>='
|
56
66
|
- !ruby/object:Gem::Version
|
57
|
-
version: 0
|
58
|
-
- - "<"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 1.0.0
|
61
|
-
- !ruby/object:Gem::Dependency
|
67
|
+
version: '0'
|
62
68
|
requirement: !ruby/object:Gem::Requirement
|
63
69
|
requirements:
|
64
|
-
- -
|
70
|
+
- - '>='
|
65
71
|
- !ruby/object:Gem::Version
|
66
72
|
version: '0'
|
67
|
-
name: logstash-devutils
|
68
73
|
prerelease: false
|
69
74
|
type: :development
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: stud
|
70
77
|
version_requirements: !ruby/object:Gem::Requirement
|
71
78
|
requirements:
|
72
|
-
- -
|
79
|
+
- - '>='
|
73
80
|
- !ruby/object:Gem::Version
|
74
81
|
version: '0'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
82
|
requirement: !ruby/object:Gem::Requirement
|
77
83
|
requirements:
|
78
|
-
- -
|
84
|
+
- - '>='
|
79
85
|
- !ruby/object:Gem::Version
|
80
86
|
version: '0'
|
81
|
-
name: stud
|
82
87
|
prerelease: false
|
83
88
|
type: :development
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - ">="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '0'
|
89
89
|
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
|
90
90
|
email: info@elastic.co
|
91
91
|
executables: []
|
@@ -110,12 +110,12 @@ require_paths:
|
|
110
110
|
- lib
|
111
111
|
required_ruby_version: !ruby/object:Gem::Requirement
|
112
112
|
requirements:
|
113
|
-
- -
|
113
|
+
- - '>='
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
117
|
requirements:
|
118
|
-
- -
|
118
|
+
- - '>='
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|