mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
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:
@@ -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>`
|
||||
|
||||
Reference in New Issue
Block a user