Skip to content

Commit 21f40c5

Browse files
build(deps): bump httpclient from 2.8.3 to 2.9.0 (#4233)
* build(deps): bump httpclient from 2.8.3 to 2.9.0 Bumps [httpclient](https://github.com/nahi/httpclient) from 2.8.3 to 2.9.0. - [Changelog](https://github.com/nahi/httpclient/blob/master/CHANGELOG.md) - [Commits](nahi/httpclient@v2.8.3...v2.9.0) --- updated-dependencies: - dependency-name: httpclient dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Adapt Credhub::Client spec Method cert_store_items is only available for JRuby now, thus checking the configured credhub_ca.crt using a spy on OpenSSL::X509::Store instead. * Adapt HTTPClient version in spec Method create_socket in HTTPClient::Session has not been changed in 2.9.0 thus the monkey patch still works. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Philipp Thun <[email protected]>
1 parent dde675b commit 21f40c5

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

Gemfile.lock

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,8 @@ GEM
261261
http-cookie (1.0.5)
262262
domain_name (~> 0.5)
263263
http-form_data (2.3.0)
264-
httpclient (2.8.3)
264+
httpclient (2.9.0)
265+
mutex_m
265266
i18n (1.14.7)
266267
concurrent-ruby (~> 1.0)
267268
io-console (0.8.0)

spec/unit/lib/credhub/client_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ module Credhub
1414
describe '#client' do
1515
describe 'ssl_config' do
1616
it 'uses the configured credhub_ca.crt' do
17-
expect(subject.send(:client).ssl_config.cert_store_items).
18-
to include(TestConfig.config_instance.get(:credhub_api, :ca_cert_path))
17+
expect_any_instance_of(OpenSSL::X509::Store).to receive(:add_file).with(TestConfig.config_instance.get(:credhub_api, :ca_cert_path)).exactly(:once)
18+
19+
subject.send(:build_client)
1920
end
2021
end
2122
end

spec/unit/lib/http/httpclient_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
RSpec.describe HTTPClient do
44
describe 'version' do
55
it 'is not updated' do
6-
expect(HTTPClient::VERSION).to eq('2.8.3'), 'revisit monkey patch in lib/http/httpclient.rb'
6+
expect(HTTPClient::VERSION).to eq('2.9.0'), 'revisit monkey patch in lib/http/httpclient.rb'
77
end
88
end
99

0 commit comments

Comments
 (0)