mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[ruby/rubygems] Removed credential assertion from stdout
https://github.com/ruby/rubygems/commit/3946be008c
This commit is contained in:
parent
8b014b1bbf
commit
4368e6c42e
@ -248,7 +248,7 @@ class TestGemRequest < Gem::TestCase
|
||||
|
||||
auth_header = conn.payload["Authorization"]
|
||||
assert_equal "Basic #{base64_encode64("{DEScede}pass:x-oauth-basic")}".strip, auth_header
|
||||
assert_includes @ui.output, "GET https://REDACTED:x-oauth-basic@example.rubygems/specs.#{Gem.marshal_version}"
|
||||
assert_includes @ui.output, "GET https://REDACTED@example.rubygems/specs.#{Gem.marshal_version}"
|
||||
end
|
||||
|
||||
def test_fetch_head
|
||||
|
||||
@ -21,7 +21,7 @@ class TestUri < Gem::TestCase
|
||||
end
|
||||
|
||||
def test_redacted_with_user_x_oauth_basic
|
||||
assert_equal "https://REDACTED:x-oauth-basic@example.com", Gem::Uri.new("https://token:x-oauth-basic@example.com").redacted.to_s
|
||||
assert_equal "https://REDACTED@example.com", Gem::Uri.new("https://token:x-oauth-basic@example.com").redacted.to_s
|
||||
end
|
||||
|
||||
def test_redacted_without_credential
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user