logstash-mixin-rabbitmq_connection 5.0.1-java → 5.0.2-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
  SHA256:
3
- metadata.gz: 1880d5b299d491d5fb90b6ba5850494365fc9f1246e32725369f041da56fcd28
4
- data.tar.gz: 3a7ee0f7182f50de4e2beabfac1bba2e316875cd43469e9c0e8db02526bd7f25
3
+ metadata.gz: a83e28c89d845adb27fba7b0704e4d51d538e10c1afff0fcf0ecea9f414265d9
4
+ data.tar.gz: e30669ac8c6e1adecc15d3d6a31d809865ea79e83a43b3f929be91e437e9f334
5
5
  SHA512:
6
- metadata.gz: 93b69824965b0f6dee3fe1102f49053f0ad6948800cf24429c0ce9f517964d7fbff9995096963605e3505d0aab0022c019101e3b0449bbd2913e8bd641d307b8
7
- data.tar.gz: db9767b055ccc12095c29a04b9fe820c5557848dafa051edb18fb7ae1fd6e46e0657e29bb7d087daf6bba5795f79b1a9e63a7b3159f1bb05729bb3cc5cdf7430
6
+ metadata.gz: 959a2c58bb14181ba9b95c30d2dae840b2d50c9d18446b7a86f62e036873187da4cc58f5ecd1e49f11fddb704ce8a1ec7666dc4cd4b3e333c544183468913449
7
+ data.tar.gz: a292cb3169a52fdf54bac75e4bd8c3b95b2789335453003f3e1bb4d010213ff74606742d7472fa982ee666ef2813b55bb3a289f31b5f7a240191f5c9eea562a8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
+ ## 5.0.2
2
+ - Bug Fix: undefined method `value' for nil:NilClass with SSL enabled, but no certificates provided [#109](https://github.com/logstash-plugins/logstash-input-rabbitmq/issues/109)
1
3
  ## 5.0.1
2
4
  - Relax constraint on march hare to allow 3.x [#44](https://github.com/logstash-plugins/logstash-mixin-rabbitmq_connection/issues/44)
3
- - Validate validate :ssl_certificate_password as a password [#43](https://github.com/logstash-plugins/logstash-mixin-rabbitmq_connection/issues/43)
5
+ - Validate :ssl_certificate_password as a password [#43](https://github.com/logstash-plugins/logstash-mixin-rabbitmq_connection/issues/43)
4
6
  ## 5.0.0
5
7
  - Mark deprecated options `debug`, `tls_certificate_path` and `tls_certificate_password` as obsolete
6
8
  ## 4.3.0
@@ -121,7 +121,7 @@ module LogStash
121
121
  s[:tls] = @ssl_version
122
122
 
123
123
  cert_path = @ssl_certificate_path
124
- cert_pass = @ssl_certificate_password.value
124
+ cert_pass = @ssl_certificate_password.value if @ssl_certificate_password
125
125
 
126
126
  if !!cert_path ^ !!cert_pass
127
127
  raise LogStash::ConfigurationError, "RabbitMQ requires both ssl_certificate_path AND ssl_certificate_password to be set!"
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'logstash-mixin-rabbitmq_connection'
4
- s.version = '5.0.1'
4
+ s.version = '5.0.2'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Common functionality for RabbitMQ plugins"
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"
@@ -68,6 +68,17 @@ describe LogStash::PluginMixins::RabbitMQConnection do
68
68
  end
69
69
  end
70
70
 
71
+ describe "ssl enabled, but no verification" do
72
+ let(:rabbitmq_settings) { super.merge({"connection_timeout" => 123,
73
+ "heartbeat" => 456,
74
+ "ssl" => true}) }
75
+
76
+ it "should not have any certificates set" do
77
+ expect(instance.rabbitmq_settings[:tls_certificate_password]).to be nil
78
+ expect(instance.rabbitmq_settings[:tls_certificate_path]).to be nil
79
+ end
80
+
81
+ end
71
82
  describe "rabbitmq_settings multiple hosts" do
72
83
  let(:file) { Stud::Temporary.file }
73
84
  let(:path) { file.path }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-mixin-rabbitmq_connection
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.1
4
+ version: 5.0.2
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-21 00:00:00.000000000 Z
11
+ date: 2018-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement