fluent-plugin-kusto 0.0.2.beta → 0.0.3.beta

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.
@@ -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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-kusto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.beta
4
+ version: 0.0.3.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Komal Rani
@@ -14,14 +14,14 @@ dependencies:
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
@@ -141,11 +141,12 @@ files:
141
141
  - lib/fluent/plugin/client.rb
142
142
  - lib/fluent/plugin/conffile.rb
143
143
  - lib/fluent/plugin/ingester.rb
144
+ - lib/fluent/plugin/kusto_constants.rb
144
145
  - lib/fluent/plugin/kusto_error_handler.rb
145
146
  - lib/fluent/plugin/kusto_query.rb
147
+ - lib/fluent/plugin/kusto_version.rb
146
148
  - lib/fluent/plugin/out_kusto.rb
147
149
  - test/helper.rb
148
- - test/plugin/e2e_kusto.rb
149
150
  - test/plugin/test_azcli_tokenprovider.rb
150
151
  - test/plugin/test_e2e_kusto.rb
151
152
  - test/plugin/test_mi_tokenprovider.rb
@@ -181,7 +182,6 @@ specification_version: 4
181
182
  summary: A custom Fluentd output plugin for Azure Kusto ingestion.
182
183
  test_files:
183
184
  - test/helper.rb
184
- - test/plugin/e2e_kusto.rb
185
185
  - test/plugin/test_azcli_tokenprovider.rb
186
186
  - test/plugin/test_e2e_kusto.rb
187
187
  - test/plugin/test_mi_tokenprovider.rb