Created
July 30, 2019 12:36
-
-
Save dLobatog/9d18276de2e47761988b9824fd058054 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def connection | |
faraday = Faraday.new do |f| | |
f.response :raise_error | |
f.adapter Faraday.default_adapter # this must be the last middleware | |
f.ssl[:verify] = false | |
end | |
faraday.basic_auth 'insights-qa', 'redhat' | |
faraday | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment