logstash-core 6.8.4-java → 6.8.5-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: b380f01eaf9ec0930636b14abecf808e660abe360018866096a4c9fc3e1ebd72
4
- data.tar.gz: 7316781fc4dc392fb5007d65b81cc3465cced2aff5ad55ed427b06ec2a0f2afe
3
+ metadata.gz: 84179c4f9ae39abcd3c065fa3390bce06dd1481e530aebd4abbca052ac540131
4
+ data.tar.gz: 83c77b369a1b2b07b6792f334cf36786ec148f96d7a2260d610dd683017d03c1
5
5
  SHA512:
6
- metadata.gz: bec038c16e038b16f19448f6fb221ef11bb13a32ee17f0c54128277e128802fe928ab6068117999d782a3b6cd41a6ed22045360bb7bc55de83a5bf20503a6de2
7
- data.tar.gz: 259f724f6bffc14644dea8ed8e7d0a268f4a86769ff7981730b7c1baa18307cb5087d8fc1b3639ecea23c36eae6cfd7046438ee5da52cfb44ddd15ae802550f3
6
+ metadata.gz: 372d280612e8c418a90287a89dbcdd0b3b2cd000781029a0c249aeab35b48ae4370a95f7ab22420f811e19dd775bdf48e4aac9a9d3af39778c4a6bff76467b55
7
+ data.tar.gz: f428c9a8c26431f53cb43ad416b3b378517021366ab10d5dbe7d4e0e3a42beb05a0d73bf7c842a9022466cb74dab771c534e25f52e58ac87fa7d4319852b87c1
@@ -2,8 +2,6 @@
2
2
  require "logstash/instrument/periodic_poller/cgroup"
3
3
  require "spec_helper"
4
4
 
5
- LogStash::Logging::Logger::configure_logging("DEBUG")
6
-
7
5
  module LogStash module Instrument module PeriodicPoller
8
6
  describe "cgroup stats" do
9
7
  let(:relative_path) { "/docker/a1f61" }
@@ -12,7 +12,7 @@ def block_ports(range)
12
12
 
13
13
  range.each do |port|
14
14
  begin
15
- server = TCPServer.new("localhost", port)
15
+ server = TCPServer.new("127.0.0.1", port)
16
16
  servers << server
17
17
  rescue => e
18
18
  # The port can already be taken
@@ -45,7 +45,7 @@ describe LogStash::WebServer do
45
45
 
46
46
  subject { LogStash::WebServer.new(logger,
47
47
  agent,
48
- { :http_host => "localhost", :http_ports => port_range })}
48
+ { :http_host => "127.0.0.1", :http_ports => port_range })}
49
49
 
50
50
  let(:port_range) { 10000..10010 }
51
51
 
@@ -89,8 +89,9 @@ describe LogStash::WebServer do
89
89
  after(:each) { free_ports(@servers) }
90
90
 
91
91
  context "when we have available ports" do
92
+ let(:blocked_range) { 10000..10005 }
92
93
  before(:each) do
93
- @servers = block_ports(10000..10005)
94
+ @servers = block_ports(blocked_range)
94
95
  end
95
96
 
96
97
  it "successfully find an available port" do
@@ -99,10 +100,13 @@ describe LogStash::WebServer do
99
100
  end
100
101
 
101
102
  sleep(1)
103
+ address = subject.address
104
+ port = address.split(":").last.to_i
105
+ expect(port_range).to cover(port)
106
+ expect(blocked_range).to_not cover(port)
102
107
 
103
- response = open("http://localhost:10006").read
108
+ response = open("http://#{address}").read
104
109
  expect { LogStash::Json.load(response) }.not_to raise_error
105
- expect(subject.address).to eq("localhost:10006")
106
110
 
107
111
  subject.stop
108
112
  t.join
@@ -1,6 +1,6 @@
1
1
  ---
2
- logstash: 6.8.4
3
- logstash-core: 6.8.4
2
+ logstash: 6.8.5
3
+ logstash-core: 6.8.5
4
4
  logstash-core-plugin-api: 2.1.16
5
5
 
6
6
  # jruby must reference a *released* version of jruby which can be downloaded from the official download url
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.8.4
4
+ version: 6.8.5
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-16 00:00:00.000000000 Z
11
+ date: 2019-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement