Skip to content

Commit

Permalink
Use open.URI() instead of open()
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Gedon <dgedon@suse.de>
  • Loading branch information
nodeg committed Mar 15, 2023
1 parent bf902aa commit c0ada86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testsuite/features/step_definitions/salt_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def pillar_get(key, minion)
Tempfile.open(rpm) do |tmpfile|
@download_path = tmpfile.path
begin
open(url, ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE) do |urlfile|
URI.open(url, ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE) do |urlfile|
tmpfile.write(urlfile.read)
end
rescue OpenURI::HTTPError => e
Expand Down
2 changes: 1 addition & 1 deletion testsuite/features/step_definitions/security_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
When(/^I retrieve any static resource$/) do
resource = %w[/img/action-add.gif /css/susemanager-light.css /fonts/DroidSans.ttf /javascript/actionchain.js].sample
@url = Capybara.app_host + resource
open(@url, ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE) do |f|
URI.open(@url, ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE) do |f|
@headers = f.meta
end
end
Expand Down

0 comments on commit c0ada86

Please sign in to comment.