Skip to content

Add integration tests for upstream token refresh#4133

Open
jhrozek wants to merge 1 commit intomainfrom
upstream-refresh/integration-tests-v2
Open

Add integration tests for upstream token refresh#4133
jhrozek wants to merge 1 commit intomainfrom
upstream-refresh/integration-tests-v2

Conversation

@jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Mar 13, 2026

Verify the UpstreamTokenService end-to-end against a real auth server with mockoidc, covering: valid token retrieval, transparent refresh of expired tokens, session-not-found, and missing refresh token error paths.

Expose the authServer on testServer so integration tests can access IDPTokenStorage() and UpstreamTokenRefresher().

The bulk of the functionality was contributed by an external contributor (thanks!), these follow-ups are just to make life easier for us from the maintenance point of view.

Verify the UpstreamTokenService end-to-end against a real
auth server with mockoidc, covering: valid token retrieval,
transparent refresh of expired tokens, session-not-found,
and missing refresh token error paths.

Expose the authServer on testServer so integration tests
can access IDPTokenStorage() and UpstreamTokenRefresher().

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the size/S Small PR: 100-299 lines changed label Mar 13, 2026
@codecov
Copy link

codecov bot commented Mar 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.99%. Comparing base (b2cbbe1) to head (7ca96a5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4133      +/-   ##
==========================================
+ Coverage   68.13%   68.99%   +0.86%     
==========================================
  Files         461      461              
  Lines       46704    46559     -145     
==========================================
+ Hits        31821    32123     +302     
+ Misses      12105    11955     -150     
+ Partials     2778     2481     -297     

☔ View full report in Codecov by Sentry.
📢 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Small PR: 100-299 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant