Update tests
This commit is contained in:
parent
e2ffdce380
commit
7196557c09
6 changed files with 21 additions and 12 deletions
|
|
@ -19,7 +19,11 @@ def curl_json(uri, username=nil, password=nil)
|
|||
if username && password
|
||||
req.basic_auth username, password
|
||||
end
|
||||
res = Net::HTTP.start(uri.hostname, uri.port) {|http|
|
||||
res = Net::HTTP.start(
|
||||
uri.hostname,
|
||||
uri.port,
|
||||
:verify_mode => OpenSSL::SSL::VERIFY_NONE
|
||||
) {|http|
|
||||
http.request(req)
|
||||
}
|
||||
return JSON.parse(res.body)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue