-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support for providing s3 endpoint url (#8)
- Loading branch information
Showing
5 changed files
with
59 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { createS3cmdArgs } from './util'; | ||
|
||
describe('cmd args helper', () => { | ||
test('can construct s3cmd args without s3 endpoint url', () => { | ||
const args = createS3cmdArgs(['ls']); | ||
expect(args).toEqual(['s3', 'ls']); | ||
}); | ||
|
||
test('can construct s3cmd args s3 endpoint url', () => { | ||
const args = createS3cmdArgs(['ls'], 'https://my.api.url.com'); | ||
expect(args).toEqual(['s3', '--endpoint-url=https://my.api.url.com', 'ls']); | ||
}); | ||
}); |
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