1
0
mirror of https://github.com/minio/mc.git synced 2025-11-13 12:22:45 +03:00

Adding auth tests

This commit is contained in:
Frederick F. Kautz IV
2015-04-20 15:12:50 -07:00
parent bba4b46c87
commit e2bae764fa
4 changed files with 104 additions and 37 deletions

View File

@@ -46,8 +46,8 @@ var (
const (
// do not pass accesskeyid and secretaccesskey through cli
// users should manually edit them, add a stub entry
accessKeyID = "YOUR-ACCESS-KEY-ID-HERE"
secretAccesskey = "YOUR-SECRET-ACCESS-KEY-HERE"
globalAccessKeyID = "YOUR-ACCESS-KEY-ID-HERE"
globalSecretAccessKey = "YOUR-SECRET-ACCESS-KEY-HERE"
)
func getMcConfigDir() (string, error) {
@@ -163,8 +163,8 @@ func newConfig() (config qdb.Store) {
localAuth := make(map[string]string)
hosts := make(map[string]map[string]string)
s3Auth["Auth.AccessKeyID"] = accessKeyID
s3Auth["Auth.SecretAccessKey"] = secretAccesskey
s3Auth["Auth.AccessKeyID"] = globalAccessKeyID
s3Auth["Auth.SecretAccessKey"] = globalSecretAccessKey
hosts["http*://s3*.amazonaws.com"] = s3Auth
// local minio server can have this empty until webcli is ready