Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(storage): cache legacy credentials #11271

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Apr 13, 2023

I think we missed the caching feature during the multiple refactorings. The test is (maybe) not ideal, but the API is not easy to test, and we do not want to change it.

Fixes #11194


This change is Reviewable

I think we missed the caching feature during the multiple refactorings.
The test is (maybe) not ideal, but the API is not easy to test, and we
do not want to change it.
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Apr 13, 2023
@codecov
Copy link

codecov bot commented Apr 13, 2023

Codecov Report

Patch coverage: 96.42% and no project coverage change.

Comparison is base (f5f98d2) 93.77% compared to head (9129e91) 93.77%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11271   +/-   ##
=======================================
  Coverage   93.77%   93.77%           
=======================================
  Files        1764     1764           
  Lines      159074   159096   +22     
=======================================
+ Hits       149174   149200   +26     
+ Misses       9900     9896    -4     
Impacted Files Coverage Δ
...loud/storage/oauth2/service_account_credentials.cc 98.48% <85.71%> (+0.02%) ⬆️
...cloud/storage/oauth2/service_account_credentials.h 85.96% <100.00%> (+0.51%) ⬆️
...storage/oauth2/service_account_credentials_test.cc 97.82% <100.00%> (+0.10%) ⬆️

... and 7 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@coryan coryan marked this pull request as ready for review April 13, 2023 15:51
@coryan coryan requested a review from a team as a code owner April 13, 2023 15:51
Copy link
Member

@scotthart scotthart left a comment

Choose a reason for hiding this comment

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

Reviewed 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @coryan)

@coryan coryan merged commit 18edebc into googleapis:main Apr 13, 2023
@coryan coryan deleted the fix-storage-cache-legacy-credentials branch April 13, 2023 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the Cloud Storage API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Legacy credentials are not caching their tokens
2 participants