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

test: improve flush api throttling test case #184

Merged
merged 9 commits into from
Nov 29, 2022

Conversation

1abhishekpandey
Copy link
Contributor

@1abhishekpandey 1abhishekpandey commented Nov 28, 2022

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • Version upgraded (project, README, gradle, podspec etc)
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added unit tests for the code
  • I have made corresponding changes to the documentation

This change is Reviewable

@1abhishekpandey 1abhishekpandey marked this pull request as ready for review November 28, 2022 17:38
@1abhishekpandey 1abhishekpandey added bug Something isn't working DO NOT MERGE labels Nov 28, 2022
@1abhishekpandey 1abhishekpandey changed the title test: make events to test throttling off flush api calls test: improve flush api throttling test case Nov 29, 2022
@1abhishekpandey 1abhishekpandey removed bug Something isn't working DO NOT MERGE labels Nov 29, 2022
@1abhishekpandey 1abhishekpandey merged commit a4cbce7 into feat/dataResidency Nov 29, 2022
@1abhishekpandey 1abhishekpandey deleted the test/flushAPI branch November 29, 2022 18:55
desusai7 pushed a commit that referenced this pull request Jan 25, 2023
* test: make events to test throttling off `flush` api calls

* fix: move the assertion block outside of thread

* fix: resolve the test getting stuck at while loop

* fix: remove safety mechanism

* chore: improve logic

* refactor: optimised code

* fix: added throttling test

* fix: remove test case

* chore: remove unused imports

Co-authored-by: Debanjan Chatterjee <debanjanchatterjee99@gmail.com>
1abhishekpandey added a commit that referenced this pull request Feb 2, 2023
* feat: Implemented Data Residency

* docs: Implemented comments in DataResidency URL.

* chore: Bumped the version to `1.8.0`

* refactor: Changed enum class to `DataResidencyServer`

* refactor: Moved methods into Utils class

* refactor: Optimised getDataResidencyUrl API

* refactor: Change method name to `appendSlashToUrl`

* refactor: Change logic to handle dataPlaneUrl

* chore: Replace manual version with Constants.RUDDER_LIBRARY_VERSION

* refactor: Rename to RudderDataResidencyManager

* refactor: Rename to RudderDataResidencyServer

* chore: Fixed the region check to small case only.

* test: Make the config object from spy to mock

* fix: Optimised flushWorkerManager based (#150)

* fix: Address the change in the dataPlaneUrl format (#154)

* (Fix) Fixed issues in UnitTest Cases for fetchAllEventsFromDB (#153)

* Fixed issues in UnitTest Cases for fetchAllEventsFromDB

* Minor cleanup

Co-authored-by: Desu Sai Venkat <desusaivenkat@Desus-MacBook-Pro.local>

* fix: Address the change in the dataPlane format

* test: Improved test cases

* fix: Optimise the gson config handler for DataResidency

* fix: remove unnecessary checking for region

Co-authored-by: Desu Sai Venkat <48179357+desusai7@users.noreply.github.com>
Co-authored-by: Desu Sai Venkat <desusaivenkat@Desus-MacBook-Pro.local>

* test: improve flush api throttling test case (#184)

* test: make events to test throttling off `flush` api calls

* fix: move the assertion block outside of thread

* fix: resolve the test getting stuck at while loop

* fix: remove safety mechanism

* chore: improve logic

* refactor: optimised code

* fix: added throttling test

* fix: remove test case

* chore: remove unused imports

Co-authored-by: Debanjan Chatterjee <debanjanchatterjee99@gmail.com>

* fix: changed try to try with resources (#185)

* chore: addressing comment

---------

Co-authored-by: Desu Sai Venkat <48179357+desusai7@users.noreply.github.com>
Co-authored-by: Desu Sai Venkat <desusaivenkat@Desus-MacBook-Pro.local>
Co-authored-by: Debanjan Chatterjee <debanjanchatterjee99@gmail.com>
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.

2 participants