-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: regulation api support for Universal Analytics (#2632)
* feat: regulation api support for Universal Analytics * Move info log to debug * name, error string correction & remove unnecessary condition * separate method for handling refresh flow method implemented * addresses naming logging concerns * add OAuth tests * add tests for oauth destination in regulation-api * linter fix * fix tests with dynamic mocking of cp requests, trigger refreshFlow for only oauth destinations * pass destination struct to Delete method & associated tests * moving the fetch token to just before sending request to transformer * remove comments * refactor fetch token logic & tests * refactor refresh flow handling * change test values * combine oauth setup with new oauth instance initialisation * fix to retry the job when refresh token fails & add more cases around error scenarios * update test-case for fetchToken error * regulation worker API oauth code refactor * move oauth logic to separate folder - remove old structure - update mocks * - update error message - add a condition to check for accountId information - add a new field to capture flowType for stats & update relevant methods - add functional option pattern to modify options according to the caller * rename function parameter * fix: (CR) rename InitAll to init * add option for oauth init in tests * fix: code-review changes * feat: single retry capability added after refresh error occurs * fix: update if-else block properly Co-authored-by: Sai Sankeerth <[email protected]> Co-authored-by: saurav-malani <[email protected]>
- Loading branch information
1 parent
ef64bba
commit 87a5d02
Showing
18 changed files
with
582 additions
and
106 deletions.
There are no files selected for viewing
28 changes: 8 additions & 20 deletions
28
...ponseHandler/mock_oauthResponseHandler.go → mocks/services/oauth/mock_oauth.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.