Skip to content

test(option): cover shared auth client cache - #2127

Merged
TerryHowe merged 1 commit into
oras-project:mainfrom
subotac:test/shared-auth-client-cache
Aug 7, 2026
Merged

TerryHowe merged 1 commit into
oras-project:mainfrom
subotac:test/shared-auth-client-cache

Conversation

@subotac

@subotac subotac commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Adds focused coverage for the shared auth client lifecycle and verifies
that separately constructed auth clients reuse cached tokens across
in-process calls.

Which issue(s) this PR fixes:

Fixes #2121

Please check the following list:

  • Tests added for the affected behavior
  • No documentation update is required
  • No breaking change
  • No new files requiring a license header

@codecov

codecov Bot commented Aug 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.40%. Comparing base (9b2b5cd) to head (d80c048).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2127      +/-   ##
==========================================
+ Coverage   87.36%   87.40%   +0.03%     
==========================================
  Files         139      139              
  Lines        5526     5526              
==========================================
+ Hits         4828     4830       +2     
+ Misses        419      417       -2     
  Partials      279      279              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@TerryHowe
TerryHowe merged commit e7f2586 into oras-project:main Aug 7, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Increase test coverage around shared client

2 participants