-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: user defined retryable errors (#392)
* feat: initial playing * feat: progress * feat: update test case * feat: first attempt at retry * feat: add NewResourceClientRetryableErrors scaffold * docs: spelling * revert: CreateOrUpdate to main * chore: go mod * revert: to main * chore: remove vendor * chore: go mod tidy * feat: add regex valudator * feat: update resources with retry * ci: update lint * ci: lint fix * test: add mock and tests for retry client * test: add acc test for retry * test: add context deadline exceeded test * test: update assertion to use method * chore: fix linting issues * test: improve test * test: add test for retry client with multiple regex patterns * chore: remove unnecessary provider gen * fix: add backoff.Reset() to retry client and add tests to prove exponential retry is working * refactor: change retryableerrors to retry after feedback from @ms-henglu * fix: set data source defaults and add test to simulate eventual consistency * chore: terrafmt --------- Co-authored-by: Heng Lu <79895375+ms-henglu@users.noreply.github.com>
- Loading branch information
1 parent
62827f3
commit 0bbfcbd
Showing
23 changed files
with
1,642 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.