fluent-plugin-kusto 0.0.2.beta → 1.0.0
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/lib/fluent/plugin/auth/aad_tokenprovider.rb +2 -3
- data/lib/fluent/plugin/auth/mi_tokenprovider.rb +1 -1
- data/lib/fluent/plugin/auth/tokenprovider_base.rb +259 -10
- data/lib/fluent/plugin/auth/wif_tokenprovider.rb +18 -3
- data/lib/fluent/plugin/client.rb +82 -1
- data/lib/fluent/plugin/ingester.rb +22 -8
- data/lib/fluent/plugin/kusto_constants.rb +57 -0
- data/lib/fluent/plugin/kusto_query.rb +8 -1
- data/lib/fluent/plugin/kusto_version.rb +9 -0
- data/test/plugin/test_e2e_kusto.rb +289 -202
- data/test/plugin/test_mi_tokenprovider.rb +10 -0
- data/test/plugin/test_wif_tokenprovider.rb +9 -0
- metadata +8 -5
- data/test/plugin/e2e_kusto.rb +0 -862
|
@@ -119,6 +119,11 @@ class ManagedIdentityTokenProviderTest < Test::Unit::TestCase
|
|
|
119
119
|
mock_request = mock
|
|
120
120
|
Net::HTTP::Get.stubs(:new).returns(mock_request)
|
|
121
121
|
|
|
122
|
+
# Mock the HTTP client setup from create_http_client method
|
|
123
|
+
mock_http.stubs(:use_ssl=)
|
|
124
|
+
mock_http.stubs(:open_timeout=)
|
|
125
|
+
mock_http.stubs(:read_timeout=)
|
|
126
|
+
mock_http.stubs(:write_timeout=)
|
|
122
127
|
mock_http.expects(:request).twice.returns(mock_response_fail, mock_response_success)
|
|
123
128
|
Net::HTTP.stubs(:new).returns(mock_http)
|
|
124
129
|
|
|
@@ -142,6 +147,11 @@ class ManagedIdentityTokenProviderTest < Test::Unit::TestCase
|
|
|
142
147
|
mock_request = mock
|
|
143
148
|
Net::HTTP::Get.stubs(:new).returns(mock_request)
|
|
144
149
|
|
|
150
|
+
# Mock the HTTP client setup from create_http_client method
|
|
151
|
+
mock_http.stubs(:use_ssl=)
|
|
152
|
+
mock_http.stubs(:open_timeout=)
|
|
153
|
+
mock_http.stubs(:read_timeout=)
|
|
154
|
+
mock_http.stubs(:write_timeout=)
|
|
145
155
|
mock_http.stubs(:request).returns(mock_response_fail)
|
|
146
156
|
Net::HTTP.stubs(:new).returns(mock_http)
|
|
147
157
|
|
|
@@ -79,6 +79,9 @@ class WorkloadIdentityTest < Test::Unit::TestCase
|
|
|
79
79
|
|
|
80
80
|
mock_http = mock
|
|
81
81
|
mock_http.expects(:use_ssl=).with(true)
|
|
82
|
+
mock_http.expects(:open_timeout=).with(10)
|
|
83
|
+
mock_http.expects(:read_timeout=).with(30)
|
|
84
|
+
mock_http.expects(:write_timeout=).with(10)
|
|
82
85
|
mock_http.expects(:request).returns(mock_response)
|
|
83
86
|
|
|
84
87
|
Net::HTTP.stubs(:new).returns(mock_http)
|
|
@@ -102,6 +105,9 @@ class WorkloadIdentityTest < Test::Unit::TestCase
|
|
|
102
105
|
|
|
103
106
|
mock_http = mock
|
|
104
107
|
mock_http.expects(:use_ssl=).with(true)
|
|
108
|
+
mock_http.expects(:open_timeout=).with(10)
|
|
109
|
+
mock_http.expects(:read_timeout=).with(30)
|
|
110
|
+
mock_http.expects(:write_timeout=).with(10)
|
|
105
111
|
mock_http.expects(:request).returns(mock_response)
|
|
106
112
|
|
|
107
113
|
Net::HTTP.stubs(:new).returns(mock_http)
|
|
@@ -125,6 +131,9 @@ class WorkloadIdentityTest < Test::Unit::TestCase
|
|
|
125
131
|
|
|
126
132
|
mock_http = mock
|
|
127
133
|
mock_http.expects(:use_ssl=).with(true)
|
|
134
|
+
mock_http.expects(:open_timeout=).with(10)
|
|
135
|
+
mock_http.expects(:read_timeout=).with(30)
|
|
136
|
+
mock_http.expects(:write_timeout=).with(10)
|
|
128
137
|
mock_http.expects(:request).returns(mock_response)
|
|
129
138
|
|
|
130
139
|
Net::HTTP.stubs(:new).returns(mock_http)
|
metadata
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-kusto
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Komal Rani
|
|
8
8
|
- Kusto OSS IDC Team
|
|
9
|
+
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date:
|
|
12
|
+
date: 2025-12-09 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: bundler
|
|
@@ -141,11 +142,12 @@ files:
|
|
|
141
142
|
- lib/fluent/plugin/client.rb
|
|
142
143
|
- lib/fluent/plugin/conffile.rb
|
|
143
144
|
- lib/fluent/plugin/ingester.rb
|
|
145
|
+
- lib/fluent/plugin/kusto_constants.rb
|
|
144
146
|
- lib/fluent/plugin/kusto_error_handler.rb
|
|
145
147
|
- lib/fluent/plugin/kusto_query.rb
|
|
148
|
+
- lib/fluent/plugin/kusto_version.rb
|
|
146
149
|
- lib/fluent/plugin/out_kusto.rb
|
|
147
150
|
- test/helper.rb
|
|
148
|
-
- test/plugin/e2e_kusto.rb
|
|
149
151
|
- test/plugin/test_azcli_tokenprovider.rb
|
|
150
152
|
- test/plugin/test_e2e_kusto.rb
|
|
151
153
|
- test/plugin/test_mi_tokenprovider.rb
|
|
@@ -162,6 +164,7 @@ licenses:
|
|
|
162
164
|
metadata:
|
|
163
165
|
fluentd_plugin: 'true'
|
|
164
166
|
fluentd_group: output
|
|
167
|
+
post_install_message:
|
|
165
168
|
rdoc_options: []
|
|
166
169
|
require_paths:
|
|
167
170
|
- lib
|
|
@@ -176,12 +179,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
176
179
|
- !ruby/object:Gem::Version
|
|
177
180
|
version: '0'
|
|
178
181
|
requirements: []
|
|
179
|
-
rubygems_version: 3.
|
|
182
|
+
rubygems_version: 3.0.3.1
|
|
183
|
+
signing_key:
|
|
180
184
|
specification_version: 4
|
|
181
185
|
summary: A custom Fluentd output plugin for Azure Kusto ingestion.
|
|
182
186
|
test_files:
|
|
183
187
|
- test/helper.rb
|
|
184
|
-
- test/plugin/e2e_kusto.rb
|
|
185
188
|
- test/plugin/test_azcli_tokenprovider.rb
|
|
186
189
|
- test/plugin/test_e2e_kusto.rb
|
|
187
190
|
- test/plugin/test_mi_tokenprovider.rb
|