Skip to content

feat: add retries to client credential requests - #70

Merged
rhamzeh merged 2 commits into
mainfrom
feat/client-credentials-retries
Apr 4, 2024
Merged

feat: add retries to client credential requests#70
rhamzeh merged 2 commits into
mainfrom
feat/client-credentials-retries

Conversation

@ewanharris

Copy link
Copy Markdown
Member

Description

Adds retries onto the client credential request.

This is currently untestable in unit tests as the existing HTTP mocking library used can only register one response per URL and this can't be worked around using the doAction feature (e.g track number of requests and change response depending on request count), because any request after the first fails.

References

Generated from openfga/sdk-generator/pull/333

Review Checklist

  • I have clicked on "allow edits by maintainers".
  • I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
  • The correct base branch is being used, if not main
  • I have added tests to validate that the change in functionality is working as expected

@ewanharris
ewanharris marked this pull request as ready for review April 3, 2024 19:39
@ewanharris
ewanharris requested review from a team as code owners April 3, 2024 19:39

@jimmyjames jimmyjames left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good - just one suggestion to add wiremock as a test implementation dependency, not an implementation dependency.

Comment thread build.gradle
@rhamzeh
rhamzeh added this pull request to the merge queue Apr 4, 2024
Merged via the queue into main with commit 543c7c7 Apr 4, 2024
@rhamzeh
rhamzeh deleted the feat/client-credentials-retries branch April 4, 2024 14:46
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.

3 participants