-
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.
clients/catalyst: Allow empty profiles to be sent on upload req (#240)
* catalyst: Allow empty profiles to be sent on upload req * catalyst: log request JSON instead of go value Harder to debug as a go value * Fix tests
- Loading branch information
Showing
3 changed files
with
22 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,21 +109,15 @@ func TestCatalystRateLimiting(t *testing.T) { | |
} | ||
|
||
func TestWithoutCredentials(t *testing.T) { | ||
require.Equal(t, UploadVODRequest{ | ||
Url: "s3+https://jv4s7zwfugeb7uccnnl2bwigikka:[email protected]/inbucket/source.mp4", | ||
OutputLocations: []OutputLocation{ | ||
{ | ||
Type: "object_store", | ||
URL: "s3+https://jv4s7zwfugeb7uccnnl2bwigikka:[email protected]/outbucket/sourcetest/hls/index.m3u8", | ||
}, | ||
}, | ||
}, withoutCredentials(UploadVODRequest{ | ||
Url: "s3+https://jv4s7zwfugeb7uccnnl2bwigikka:j3axkol3vqndxy4vs6mgmv4tzs47kaxazj3uesegybny2q7n74jwq@gateway.storjshare.io/inbucket/source.mp4", | ||
OutputLocations: []OutputLocation{ | ||
{ | ||
Type: "object_store", | ||
URL: "s3+https://jv4s7zwfugeb7uccnnl2bwigikka:j3axkol3vqndxy4vs6mgmv4tzs47kaxazj3uesegybny2q7n74jwq@gateway.storjshare.io/outbucket/sourcetest/hls/index.m3u8", | ||
require.Equal(t, | ||
`{"url":"s3+https://jv4s7zwfugeb7uccnnl2bwigikka:[email protected]/inbucket/source.mp4","callback_url":"","output_locations":[{"type":"object_store","url":"s3+https://jv4s7zwfugeb7uccnnl2bwigikka:[email protected]/outbucket/sourcetest/hls/index.m3u8"}],"clip_strategy":{}}`, | ||
withoutCredentials(UploadVODRequest{ | ||
Url: "s3+https://jv4s7zwfugeb7uccnnl2bwigikka:j3axkol3vqndxy4vs6mgmv4tzs47kaxazj3uesegybny2q7n74jwq@gateway.storjshare.io/inbucket/source.mp4", | ||
OutputLocations: []OutputLocation{ | ||
{ | ||
Type: "object_store", | ||
URL: "s3+https://jv4s7zwfugeb7uccnnl2bwigikka:j3axkol3vqndxy4vs6mgmv4tzs47kaxazj3uesegybny2q7n74jwq@gateway.storjshare.io/outbucket/sourcetest/hls/index.m3u8", | ||
}, | ||
}, | ||
}, | ||
})) | ||
})) | ||
} |
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