diff options
author | Alexander Pakulov <apakulov@stripe.com> | 2019-08-14 12:00:27 -0700 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2019-08-17 07:35:48 +0900 |
commit | 25a327d41bcb881f27acfcc58f262986a8f4e5b4 (patch) | |
tree | b3adfbc57fbf9c2e4789c2076ec8a97373027f3f /test | |
parent | c4f7c260f995778a40c6fc15107090fdb51d49a8 (diff) | |
download | ruby-25a327d41bcb881f27acfcc58f262986a8f4e5b4.tar.gz |
[rubygems/rubygems] Do not mutate uri.query during s3 signature creation
https://github.com/rubygems/rubygems/commit/c0275ee537
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_gem_remote_fetcher.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_remote_fetcher.rb b/test/rubygems/test_gem_remote_fetcher.rb index 92ff350b26..76a66af867 100644 --- a/test/rubygems/test_gem_remote_fetcher.rb +++ b/test/rubygems/test_gem_remote_fetcher.rb @@ -675,6 +675,9 @@ PeIQQkFng2VVot/WAQbv3ePqWq07g1BBcwIBAg== def s3_uri_signer.ec2_metadata_credentials_json JSON.parse($instance_profile) end + # Running sign operation to make sure uri.query is not mutated + s3_uri_signer.sign + raise "URI query is not empty: #{uri.query}" unless uri.query.nil? s3_uri_signer end |