fluent-plugin-elasticsearch 4.1.2 → 4.2.2
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 +4 -4
- data/.github/workflows/linux.yml +1 -1
- data/.github/workflows/macos.yml +1 -1
- data/.github/workflows/windows.yml +1 -1
- data/History.md +24 -0
- data/README.ElasticsearchGenID.md +2 -2
- data/README.md +85 -2
- data/fluent-plugin-elasticsearch.gemspec +1 -1
- data/lib/fluent/plugin/elasticsearch_index_template.rb +42 -15
- data/lib/fluent/plugin/out_elasticsearch.rb +46 -9
- data/test/plugin/test_elasticsearch_tls.rb +8 -2
- data/test/plugin/test_in_elasticsearch.rb +14 -9
- data/test/plugin/test_index_alias_template.json +11 -0
- data/test/plugin/test_index_template.json +25 -0
- data/test/plugin/test_out_elasticsearch.rb +864 -263
- data/test/plugin/test_out_elasticsearch_dynamic.rb +7 -2
- metadata +6 -2
@@ -101,8 +101,13 @@ class ElasticsearchOutputDynamic < Test::Unit::TestCase
|
|
101
101
|
assert_nil instance.ssl_max_version
|
102
102
|
assert_nil instance.ssl_min_version
|
103
103
|
if Fluent::Plugin::ElasticsearchTLS::USE_TLS_MINMAX_VERSION
|
104
|
-
|
105
|
-
|
104
|
+
if defined?(OpenSSL::SSL::TLS1_3_VERSION)
|
105
|
+
assert_equal({max_version: OpenSSL::SSL::TLS1_3_VERSION, min_version: OpenSSL::SSL::TLS1_2_VERSION},
|
106
|
+
instance.ssl_version_options)
|
107
|
+
else
|
108
|
+
assert_equal({max_version: nil, min_version: OpenSSL::SSL::TLS1_2_VERSION},
|
109
|
+
instance.ssl_version_options)
|
110
|
+
end
|
106
111
|
else
|
107
112
|
assert_equal({version: Fluent::Plugin::ElasticsearchTLS::DEFAULT_VERSION},
|
108
113
|
instance.ssl_version_options)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-elasticsearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- diogo
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-
|
13
|
+
date: 2020-10-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fluentd
|
@@ -178,6 +178,8 @@ files:
|
|
178
178
|
- test/plugin/test_elasticsearch_tls.rb
|
179
179
|
- test/plugin/test_filter_elasticsearch_genid.rb
|
180
180
|
- test/plugin/test_in_elasticsearch.rb
|
181
|
+
- test/plugin/test_index_alias_template.json
|
182
|
+
- test/plugin/test_index_template.json
|
181
183
|
- test/plugin/test_oj_serializer.rb
|
182
184
|
- test/plugin/test_out_elasticsearch.rb
|
183
185
|
- test/plugin/test_out_elasticsearch_dynamic.rb
|
@@ -216,6 +218,8 @@ test_files:
|
|
216
218
|
- test/plugin/test_elasticsearch_tls.rb
|
217
219
|
- test/plugin/test_filter_elasticsearch_genid.rb
|
218
220
|
- test/plugin/test_in_elasticsearch.rb
|
221
|
+
- test/plugin/test_index_alias_template.json
|
222
|
+
- test/plugin/test_index_template.json
|
219
223
|
- test/plugin/test_oj_serializer.rb
|
220
224
|
- test/plugin/test_out_elasticsearch.rb
|
221
225
|
- test/plugin/test_out_elasticsearch_dynamic.rb
|