fluentd 1.8.0.rc2 → 1.8.0.rc3

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.

Potentially problematic release.


This version of fluentd might be problematic. Click here for more details.

@@ -538,6 +538,19 @@ class ServerPluginHelperTest < Test::Unit::TestCase
538
538
  assert_equal ["yayfoo\n", "yayfoo\n", "yayfoo\n"], lines
539
539
  assert_equal ["closed", "closed", "closed"], callback_results
540
540
  end
541
+
542
+ test 'can listen IPv4 / IPv6 together' do
543
+ omit "IPv6 unavailable here" unless ipv6_enabled?
544
+
545
+ assert_nothing_raised do
546
+ @d.server_create_tcp(:s_ipv4, PORT, bind: '0.0.0.0', shared: false) do |data, conn|
547
+ # ...
548
+ end
549
+ @d.server_create_tcp(:s_ipv6, PORT, bind: '::', shared: false) do |data, conn|
550
+ # ...
551
+ end
552
+ end
553
+ end
541
554
  end
542
555
 
543
556
  sub_test_case '#server_create_udp' do
@@ -30,14 +30,6 @@ class SupervisorTest < ::Test::Unit::TestCase
30
30
  File.open(path, "w") {|f| f.write data }
31
31
  end
32
32
 
33
- def test_initialize
34
- opts = Fluent::Supervisor.default_options
35
- sv = Fluent::Supervisor.new(opts)
36
- opts.each { |k, v|
37
- assert_equal v, sv.instance_variable_get("@#{k}")
38
- }
39
- end
40
-
41
33
  def test_read_config
42
34
  create_info_dummy_logger
43
35
 
@@ -61,10 +53,8 @@ class SupervisorTest < ::Test::Unit::TestCase
61
53
 
62
54
  sv.instance_variable_set(:@config_path, tmp_dir)
63
55
  sv.instance_variable_set(:@use_v1_config, use_v1_config)
64
- sv.send(:read_config)
65
-
66
- conf = sv.instance_variable_get(:@conf)
67
56
 
57
+ conf = sv.__send__(:read_config)
68
58
  elem = conf.elements.find { |e| e.name == 'source' }
69
59
  assert_equal "forward", elem['@type']
70
60
  assert_equal "forward_input", elem['@id']
@@ -108,9 +98,8 @@ class SupervisorTest < ::Test::Unit::TestCase
108
98
 
109
99
  sv.instance_variable_set(:@config_path, tmp_path)
110
100
  sv.instance_variable_set(:@use_v1_config, use_v1_config)
111
- sv.send(:read_config)
112
101
 
113
- conf = sv.instance_variable_get(:@conf)
102
+ conf = sv.__send__(:read_config)
114
103
  label = conf.elements.detect {|e| e.name == "label" }
115
104
  filter = label.elements.detect {|e| e.name == "filter" }
116
105
  record_transformer = filter.elements.detect {|e| e.name = "record_transformer" }
@@ -148,9 +137,7 @@ class SupervisorTest < ::Test::Unit::TestCase
148
137
  </system>
149
138
  EOC
150
139
  conf = Fluent::Config.parse(conf_data, "(test)", "(test_dir)", true)
151
- sv.instance_variable_set(:@conf, conf)
152
- sv.send(:set_system_config)
153
- sys_conf = sv.instance_variable_get(:@system_config)
140
+ sys_conf = sv.__send__(:build_system_config, conf)
154
141
 
155
142
  assert_equal '127.0.0.1:24445', sys_conf.rpc_endpoint
156
143
  assert_equal true, sys_conf.suppress_repeated_stacktrace
@@ -229,9 +216,7 @@ class SupervisorTest < ::Test::Unit::TestCase
229
216
  </system>
230
217
  EOC
231
218
  conf = Fluent::Config.parse(conf_data, "(test)", "(test_dir)", true)
232
- sv.instance_variable_set(:@conf, conf)
233
- sv.send(:set_system_config)
234
- sys_conf = sv.instance_variable_get(:@system_config)
219
+ sys_conf = sv.__send__(:build_system_config, conf)
235
220
 
236
221
  server = DummyServer.new
237
222
  server.rpc_endpoint = sys_conf.rpc_endpoint
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluentd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0.rc2
4
+ version: 1.8.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-29 00:00:00.000000000 Z
11
+ date: 2019-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack