(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:
Nick Burgan-Illig 2021-06-15 00:11:55 +00:00
parent bd4ae1ee8e
commit 49f57963bc
2 changed files with 6 additions and 0 deletions

View file

@ -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