logstash-output-elasticsearch 0.1.12-java → 0.1.13-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: 77b12cd9313e862a296d94efaa3d7c2b9666784d
4
- data.tar.gz: b4bc92603e01e2766c75017dded6daa844f46ae3
3
+ metadata.gz: 851fa04145331bbf46a5859e27197d72bcbf4e0d
4
+ data.tar.gz: cea045af69707fb9b874df6b1a88fff1a1a4e0a4
5
5
  SHA512:
6
- metadata.gz: 25e3b5684006b4e6cd7fb1cc1b92a1a05084720aeaf221e26f5b5ff74c21725ab82159e9ff06c8734088f631998975aa8a8b6239203677d651d8df356cd8ed8f
7
- data.tar.gz: c29944858c5b4cfc3b15eec3f6849c8ec0a489e9ac2617a4e53c39cbf51db9afd7a22f096353a9db67e7dbd641cb0e36da9973249a7108cd799a859f197f0c4c
6
+ metadata.gz: e7a2f8d4c9f8d52faf318da314460862515d3584c46beb90582b189d8795b7d7ff8a60fa340658e6be12a950c08b674fc376096439cd1eafeea61ad59c6606af
7
+ data.tar.gz: 28668b405794ad2f0ea8876c603b83298f5b61d2f3c6b52bfe493cfe096c11427ab7a953b7db7b104fdef5b4023f5e6f12b788c4d67e84a33fbe8018d7bc2efe
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-elasticsearch'
4
- s.version = '0.1.12'
4
+ s.version = '0.1.13'
5
5
  s.licenses = ['apache-2.0']
6
6
  s.summary = "Logstash Output to Elasticsearch"
7
7
  s.description = "Output events to elasticsearch"
@@ -30,7 +30,7 @@ Gem::Specification.new do |s|
30
30
  s.add_runtime_dependency 'logstash', '>= 1.4.0', '< 2.0.0'
31
31
  s.add_runtime_dependency 'jar-dependencies'
32
32
 
33
- s.add_development_dependency 'ftw', ['>= 0.0.40', '~> 0']
33
+ s.add_development_dependency 'ftw', '~> 0.0.42'
34
34
  s.add_development_dependency 'logstash-input-generator'
35
35
 
36
36
 
@@ -716,32 +716,51 @@ describe "outputs/elasticsearch" do
716
716
  }.to_not raise_error
717
717
  end
718
718
  end
719
- end
720
719
 
721
- describe "outputs/elasticsearch", :elasticsearch => true do
722
- require 'elasticsearch'
720
+ describe "transport protocol" do
723
721
 
724
- it "set sniffing in transport mode" do
722
+ context "sniffing => true" do
725
723
 
726
- config = %q[
727
- output {
728
- elasticsearch {
729
- host => "localhost"
730
- protocol => "transport"
731
- sniffing => true
724
+ subject do
725
+ require "logstash/outputs/elasticsearch"
726
+ settings = {
727
+ "host" => "node01",
728
+ "protocol" => "transport",
729
+ "sniffing" => true
732
730
  }
733
- }
734
- ]
731
+ next LogStash::Outputs::ElasticSearch.new(settings)
732
+ end
733
+
734
+ it "should set the sniffing property to true" do
735
+ expect_any_instance_of(LogStash::Outputs::Elasticsearch::Protocols::TransportClient).to receive(:client).and_return(nil)
736
+ subject.register
737
+ client = subject.instance_eval("@current_client")
738
+ settings = client.instance_eval("@settings")
735
739
 
740
+ expect(settings.build.getAsMap["client.transport.sniff"]).to eq("true")
741
+ end
742
+ end
736
743
 
737
- settings_class = org.elasticsearch.common.settings.ImmutableSettings
738
- settings = settings_class.settingsBuilder
744
+ context "sniffing => false" do
739
745
 
740
- expect(settings_class).to receive(:settingsBuilder).and_return(settings)
746
+ subject do
747
+ require "logstash/outputs/elasticsearch"
748
+ settings = {
749
+ "host" => "node01",
750
+ "protocol" => "transport",
751
+ "sniffing" => false
752
+ }
753
+ next LogStash::Outputs::ElasticSearch.new(settings)
754
+ end
741
755
 
742
- pipeline = LogStash::Pipeline.new(config)
743
- pipeline.run
756
+ it "should set the sniffing property to true" do
757
+ expect_any_instance_of(LogStash::Outputs::Elasticsearch::Protocols::TransportClient).to receive(:client).and_return(nil)
758
+ subject.register
759
+ client = subject.instance_eval("@current_client")
760
+ settings = client.instance_eval("@settings")
744
761
 
745
- expect(settings.build.getAsMap["client.transport.sniff"]).to eq("true")
762
+ expect(settings.build.getAsMap["client.transport.sniff"]).to eq("false")
763
+ end
764
+ end
746
765
  end
747
766
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: java
6
6
  authors:
7
7
  - Elasticsearch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-28 00:00:00.000000000 Z
11
+ date: 2015-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -116,20 +116,14 @@ dependencies:
116
116
  name: ftw
117
117
  version_requirements: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - '>='
120
- - !ruby/object:Gem::Version
121
- version: 0.0.40
122
119
  - - ~>
123
120
  - !ruby/object:Gem::Version
124
- version: '0'
121
+ version: 0.0.42
125
122
  requirement: !ruby/object:Gem::Requirement
126
123
  requirements:
127
- - - '>='
128
- - !ruby/object:Gem::Version
129
- version: 0.0.40
130
124
  - - ~>
131
125
  - !ruby/object:Gem::Version
132
- version: '0'
126
+ version: 0.0.42
133
127
  prerelease: false
134
128
  type: :development
135
129
  - !ruby/object:Gem::Dependency