Update tests

This commit is contained in:
pemontto 2019-10-13 16:18:55 +01:00
parent e2ffdce380
commit 7196557c09
No known key found for this signature in database
GPG key ID: EDCB93C3DA1B5DA9
6 changed files with 21 additions and 12 deletions

View file

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