generated from ghga-de/microservice-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache HTTP requests (GSI-1235) (#107)
* Swap MockRouter out in favor of FastAPI app * Enable general caching with async_client * Uncomment accidentally commented-out test cases * Add garbage collection in downloader * Add cache-control header and remove url from _get_authorization * Get WOT and S3 download url for every part again * Implement DL caching in existing integration tests * Update other integration tests * Cleanup hanging async tasks in file ops tests and fix mypy complaints * Remove unused duplicate module * Remove unused constants and imports * Use default cache limit of 128 and refactor use of client in testing * Make sure not to cache S3 part downloads * Move mock app fixturing to mock app module * Test caching of WPS calls * Make mypy happy without using ignores * Add missing mock_external_calls fixture * Add CACHE_MIN_FRESH constant and update caching behavior in API calls * Bump version to 1.6.0 * Reflect WPS and DCS caching headers in mock responses * Reduce cache TTL
- Loading branch information
1 parent
dc4040e
commit 2a733c3
Showing
18 changed files
with
724 additions
and
730 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,4 @@ | |
MAX_PART_NUMBER = 10000 | ||
MAX_RETRIES = 5 | ||
MAX_WAIT_TIME = 60 * 60 | ||
CACHE_MIN_FRESH = 3 |
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.