-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor createS3Client to separate types and make testable (#967)
This PR makes the following changes: - Refactor `createS3Client` into testable functions. - Remove `requestTimeout` and `connectionTimeout` handlerOptions logic, as it has never been used and made things overly complicated. - Add tests for all created functions. ref #960
- Loading branch information
Showing
8 changed files
with
348 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@terascope/file-asset-apis", | ||
"displayName": "File Asset Apis", | ||
"version": "0.12.1", | ||
"version": "0.12.2", | ||
"description": "file reader and sender apis", | ||
"homepage": "https://github.com/terascope/file-assets", | ||
"repository": "[email protected]:terascope/file-assets.git", | ||
|
@@ -30,7 +30,7 @@ | |
"node-gzip": "^1.1.2" | ||
}, | ||
"devDependencies": { | ||
"@terascope/scripts": "^0.74.0", | ||
"@terascope/scripts": "^0.75.1", | ||
"@types/jest": "^29.5.12", | ||
"aws-sdk-client-mock": "^4.0.0", | ||
"jest": "^29.7.0", | ||
|
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
createS3Client-spec just needs to find a file in this directory. | ||
There is no need to use an actual cert with the tests running currently. |
Oops, something went wrong.