Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit 4ead98d

Browse files
committed
Update specs for peer verification changes
1 parent 824f5ec commit 4ead98d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

spec/net/http_client_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
HTTP_OPTION_MAX_CONCURRENCY,
4747
HTTP_OPTION_CLIENT_TIMEOUT,
4848
HTTP_OPTION_USER_AGENT,
49-
HTTP_OPTION_FOLLOW_REDIRECT
49+
HTTP_OPTION_FOLLOW_REDIRECT,
50+
HTTP_OPTION_PEER_VERIFICATION
5051
]
5152

5253
options.each do |o|

spec/net/typhoeus_helper_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@
1616
subject.set_option_value('proxy_auth_creds', 'root:toor')
1717
subject.set_option_value('verify_host', true)
1818
subject.set_option_value('http_client_timeout', 10_000)
19+
subject.set_option_value('verify_peer', false)
1920

2021
expect(subject.advanced_typhoeus_options).to include(
2122
userpwd: 'root:toor',
2223
proxy: '127.0.0.1',
2324
proxyuserpwd: 'root:toor',
2425
ssl_verifyhost: 2,
25-
timeout: 10_000
26+
timeout: 10_000,
27+
ssl_verifypeer: false
2628
)
2729
end
2830
end

0 commit comments

Comments
 (0)