mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
Improve coverage of web-handlers.go (#3157)
This patch additionally relaxes the requirement for accesskeys to be in a regexy set of values. Fixes #3063
This commit is contained in:
@@ -116,10 +116,10 @@ func TestParseCredentialHeader(t *testing.T) {
|
||||
expectedErrCode: ErrCredMalformed,
|
||||
},
|
||||
// Test Case - 4.
|
||||
// Test case with malformed AccessKey.
|
||||
// Test case with AccessKey of length 4.
|
||||
{
|
||||
inputCredentialStr: generateCredentialStr(
|
||||
"^#@..!23",
|
||||
"^#@.",
|
||||
time.Now().UTC().Format(yyyymmdd),
|
||||
"ABCD",
|
||||
"ABCD",
|
||||
|
||||
Reference in New Issue
Block a user