creds: Secretkey should be generated upto 40 characters in length. (#4471)

Current code allowed it wrongly to generate secret key upto 100
we should only use 100 as a value to validate but for generating
it should be 40.

Fixes #4470
This commit is contained in:
Harshavardhana
2017-06-05 15:18:03 -07:00
committed by GitHub
parent 986aa8fabf
commit 1c3f244fc5
4 changed files with 31 additions and 18 deletions

View File

@@ -93,13 +93,6 @@ func (s *TestSuiteCommon) TearDownSuite(c *C) {
s.testServer.Stop()
}
func (s *TestSuiteCommon) TestAuth(c *C) {
cred := mustGetNewCredential()
c.Assert(len(cred.AccessKey), Equals, accessKeyMaxLen)
c.Assert(len(cred.SecretKey), Equals, secretKeyMaxLen)
}
func (s *TestSuiteCommon) TestBucketSQSNotificationWebHook(c *C) {
// Sample bucket notification.
bucketNotificationBuf := `<NotificationConfiguration><QueueConfiguration><Event>s3:ObjectCreated:Put</Event><Filter><S3Key><FilterRule><Name>prefix</Name><Value>images/</Value></FilterRule></S3Key></Filter><Id>1</Id><Queue>arn:minio:sqs:us-east-1:444455556666:webhook</Queue></QueueConfiguration></NotificationConfiguration>`