Skip to content

fix: Using AuthorizedHttpClient for updating rules during tests #590

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

Merged
merged 1 commit into from
Aug 25, 2021

Conversation

hiranya911
Copy link
Contributor

Our nightly builds intermittently fail due to the race conditions outlined in googleapis/google-auth-library-java#692. As a possible fix I'd like to try setting the auth token in the request header instead of the URL. This way we do not have to directly interact with GoogleCredentials or auth tokens at all (which seems to be the source of the race condition). Instead we can get the HttpRequestFactory API to handle all that internally, just like our service client implementations do.

At the same time, I'm also refactoring the IntegrationTestUtils.AppHttpClient class into a top-level RulesClient class, and reducing its visibility to the database integration tests package.

@hiranya911 hiranya911 added the release:stage Stage a release candidate label Aug 24, 2021
Copy link
Member

@lahirumaramba lahirumaramba left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM!

@hiranya911 hiranya911 merged commit 9f57c9a into master Aug 25, 2021
@hiranya911 hiranya911 deleted the hkj-rules-client branch August 25, 2021 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:stage Stage a release candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants