mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
Use const slashSeparator instead of "/" everywhere (#8028)
This commit is contained in:
@@ -36,7 +36,7 @@ func joinWithSlash(accessKey, date, region, service, requestVersion string) stri
|
||||
date,
|
||||
region,
|
||||
service,
|
||||
requestVersion}, "/")
|
||||
requestVersion}, SlashSeparator)
|
||||
}
|
||||
|
||||
// generate CredentialHeader from its fields.
|
||||
@@ -79,12 +79,12 @@ func validateCredentialfields(t *testing.T, testNum int, expectedCredentials cre
|
||||
|
||||
// TestParseCredentialHeader - validates the format validator and extractor for the Credential header in an aws v4 request.
|
||||
// A valid format of creadential should be of the following format.
|
||||
// Credential = accessKey + "/"+ scope
|
||||
// Credential = accessKey + SlashSeparator+ scope
|
||||
// where scope = string.Join([]string{ currTime.Format(yyyymmdd),
|
||||
// globalMinioDefaultRegion,
|
||||
// "s3",
|
||||
// "aws4_request",
|
||||
// },"/")
|
||||
// },SlashSeparator)
|
||||
func TestParseCredentialHeader(t *testing.T) {
|
||||
|
||||
sampleTimeStr := UTCNow().Format(yyyymmdd)
|
||||
|
||||
Reference in New Issue
Block a user