api/bucket-policy: Add unit tests for more coverage, fixes couple of bugs. (#2055)

Changes to ResourceMatch logic.
Test for action match function.
This commit is contained in:
karthic rao
2016-07-01 12:19:59 +05:30
committed by Harshavardhana
parent bcb822c390
commit 48aa5f2199
4 changed files with 252 additions and 56 deletions
+2
View File
@@ -34,6 +34,8 @@ const (
// supportedActionMap - lists all the actions supported by minio.
var supportedActionMap = map[string]struct{}{
"*": {},
"s3:*": {},
"s3:GetObject": {},
"s3:ListBucket": {},
"s3:PutObject": {},