logstash-mixin-aws 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f00cc7ea12d56fa9b3c604ee68cef128f7c9718b
4
- data.tar.gz: 9b84affbeb7ded1589cb9fd42b3aebf94c188d5d
3
+ metadata.gz: c7d2e0f437ea7db04374d9e23b4aff8e270ec07d
4
+ data.tar.gz: f8d598d710de7d5bdceadeb07b4431880fe3b2e3
5
5
  SHA512:
6
- metadata.gz: 2994e1df54cfb124c2fad4b4f27b61a7180c516ad7f602ef415968879104540e407dd16d5a74854462706ebb3c6cf1145ba790a16b16930f35c92bf5fdd71f12
7
- data.tar.gz: bf8695dac26cd81bb4efc6f8b93b959de2ecac3634689e32f73166b4986e40ab51a89303e7e8d986ce717c3f5a2e061b144271ff0e7f6ed019a24aa74abd7bcc
6
+ metadata.gz: 59a990525a9da76bfa56ea1f1db319db69e8ab0e81ac766e8ef8311c3b6b0c7bd555b23646ba525a277347c173b23426ad282b53b1c3b6038caf75d33543960f
7
+ data.tar.gz: 1e6d6421937ec14c35a215139895487943a08ccd137bfdd8ffab280569b76f1c3dcb4f1f3b2348bed05dba025d93eecce5626ad9554f31e184cf11d74f6f414b
data/CHANGELOG.md CHANGED
@@ -1,2 +1,5 @@
1
+ # 1.0.1
2
+ * Correctly set proxy options on V2 of the aws-sdk
3
+
1
4
  # 1.0.0
2
5
  * Allow to use either V1 or V2 of the `AWS-SDK` in your plugins. Fixes: https://github.com/logstash-plugins/logstash-mixin-aws/issues/8
data/NOTICE.TXT ADDED
@@ -0,0 +1,5 @@
1
+ Elasticsearch
2
+ Copyright 2012-2015 Elasticsearch
3
+
4
+ This product includes software developed by The Apache Software
5
+ Foundation (http://www.apache.org/).
@@ -17,7 +17,7 @@ module LogStash::PluginMixins::AwsConfig::V2
17
17
 
18
18
  opts[:credentials] = credentials if credentials
19
19
 
20
- opts[:proxy_uri] = @proxy_uri if @proxy_uri
20
+ opts[:http_proxy] = @proxy_uri if @proxy_uri
21
21
 
22
22
  # The AWS SDK for Ruby doesn't know how to make an endpoint hostname from a region
23
23
  # for example us-west-1 -> foosvc.us-west-1.amazonaws.com
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-mixin-aws'
3
- s.version = '1.0.0'
3
+ s.version = '1.0.1'
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"
@@ -125,6 +125,19 @@ describe LogStash::PluginMixins::AwsConfig::V2 do
125
125
  end
126
126
  end
127
127
 
128
+ describe 'config proxy' do
129
+ let(:proxy) { "http://localhost:1234" }
130
+ let(:settings) { { 'access_key_id' => '1234', 'secret_access_key' => 'secret', 'region' => 'us-west-2', 'proxy_uri' => proxy } }
131
+
132
+ it "should set the http_proxy option" do
133
+ expect(subject[:http_proxy]).to eql(proxy)
134
+ end
135
+
136
+ it "should not set the legacy http proxy option" do
137
+ expect(subject[:proxy_uri]).not_to eql(proxy)
138
+ end
139
+ end
140
+
128
141
  describe 'config region' do
129
142
  context "when the class implement `#aws_service_endpoint`" do
130
143
  context 'region provided' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-mixin-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-18 00:00:00.000000000 Z
11
+ date: 2015-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-core
@@ -97,6 +97,7 @@ files:
97
97
  - CONTRIBUTORS
98
98
  - Gemfile
99
99
  - LICENSE
100
+ - NOTICE.TXT
100
101
  - README.md
101
102
  - Rakefile
102
103
  - lib/logstash/plugin_mixins/aws_config.rb