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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84179c4f9ae39abcd3c065fa3390bce06dd1481e530aebd4abbca052ac540131
|
4
|
+
data.tar.gz: 83c77b369a1b2b07b6792f334cf36786ec148f96d7a2260d610dd683017d03c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 372d280612e8c418a90287a89dbcdd0b3b2cd000781029a0c249aeab35b48ae4370a95f7ab22420f811e19dd775bdf48e4aac9a9d3af39778c4a6bff76467b55
|
7
|
+
data.tar.gz: f428c9a8c26431f53cb43ad416b3b378517021366ab10d5dbe7d4e0e3a42beb05a0d73bf7c842a9022466cb74dab771c534e25f52e58ac87fa7d4319852b87c1
|
@@ -12,7 +12,7 @@ def block_ports(range)
|
|
12
12
|
|
13
13
|
range.each do |port|
|
14
14
|
begin
|
15
|
-
server = TCPServer.new("
|
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 => "
|
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(
|
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
|
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
|
data/versions-gem-copy.yml
CHANGED
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
|
+
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-
|
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
|