[ruby/rubygems] Removed credential assertion from stdout

https://github.com/ruby/rubygems/commit/3946be008c
This commit is contained in:
Hiroshi SHIBATA 2025-10-23 08:22:43 +09:00 committed by git
parent 8b014b1bbf
commit 4368e6c42e
2 changed files with 2 additions and 2 deletions

View File

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

View File

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