Skip to content

Improve unit tests for gcp auth extension#1103

Merged
dashpole merged 2 commits into
GoogleCloudPlatform:mainfrom
dashpole:better_auth_test
Feb 13, 2026
Merged

Improve unit tests for gcp auth extension#1103
dashpole merged 2 commits into
GoogleCloudPlatform:mainfrom
dashpole:better_auth_test

Conversation

@dashpole
Copy link
Copy Markdown
Contributor

@dashpole dashpole commented Feb 12, 2026

This mocks the metadata server to return auth tokens, and verifies that they are properly attached to http requests.

@dashpole dashpole requested a review from a team as a code owner February 12, 2026 03:27
@dashpole dashpole force-pushed the better_auth_test branch 3 times, most recently from 2dd09ab to 098375a Compare February 13, 2026 17:06
@dashpole
Copy link
Copy Markdown
Contributor Author

I wanted to write a better test for grafana/alloy#5526, and figured putting it in our repo as well would be good.

@dashpole dashpole merged commit 5309f92 into GoogleCloudPlatform:main Feb 13, 2026
28 checks passed
@dashpole dashpole deleted the better_auth_test branch February 13, 2026 18:54
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (4caace7) to head (3dcd325).
⚠️ Report is 157 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #1103       +/-   ##
==========================================
- Coverage   61.03%       0   -61.04%     
==========================================
  Files          56       0       -56     
  Lines        5903       0     -5903     
==========================================
- Hits         3603       0     -3603     
+ Misses       2143       0     -2143     
+ Partials      157       0      -157     

☔ 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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants