Authorization validation in accordance with S3 signer AWSv2

This commit is contained in:
Harshavardhana
2015-01-28 15:45:42 -08:00
parent e25c39e20f
commit d78cd581c5
7 changed files with 218 additions and 26 deletions

View File

@@ -0,0 +1,24 @@
package keys
import (
"testing"
. "gopkg.in/check.v1"
)
func Test(t *testing.T) { TestingT(t) }
type MySuite struct{}
var _ = Suite(&MySuite{})
func (s *MySuite) Testing(c *C) {
value, err := GetRandomBase64(MINIO_SECRET_ID)
c.Assert(err, IsNil)
alphanum, err := GetRandomAlphaNumeric(MINIO_ACCESS_ID)
c.Assert(err, IsNil)
c.Log(string(value))
c.Log(string(alphanum))
}