mirror of
https://github.com/puppetlabs/beaker-vmpooler.git
synced 2026-01-26 02:58:42 -05:00
(maint) Use SSL when pooler_api URL is HTTPS
Since vmpooler supports HTTPS and in some environments, only HTTPS is allowed, this sets Net::HTTP to use SSL when the URI is HTTPS.
This commit is contained in:
parent
bd4ae1ee8e
commit
49f57963bc
2 changed files with 6 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ module Beaker
|
|||
|
||||
before :each do
|
||||
stub_const( "Net", MockNet )
|
||||
allow_any_instance_of(MockNet::HTTP).to receive(:use_ssl=)
|
||||
allow( JSON ).to receive( :parse ) do |arg|
|
||||
arg
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue