From 7fec1a97e26dc1d93d01b6610c5d23042937f7e6 Mon Sep 17 00:00:00 2001 From: "changlin.shi" Date: Wed, 28 Dec 2022 12:35:40 +0800 Subject: [PATCH] fix tests Signed-off-by: changlin.shi --- weed/s3api/bucket_metadata_test.go | 40 +++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/weed/s3api/bucket_metadata_test.go b/weed/s3api/bucket_metadata_test.go index cd6aef78f..98c569dea 100644 --- a/weed/s3api/bucket_metadata_test.go +++ b/weed/s3api/bucket_metadata_test.go @@ -113,7 +113,15 @@ var tcs = []*BucketMetadataTestCase{ DisplayName: &s3account.AccountAdmin.Name, ID: &s3account.AccountAdmin.Id, }, - Acl: nil, + Acl: []*s3.Grant{ + { + Permission: &s3_constants.PermissionFullControl, + Grantee: &s3.Grantee{ + Type: &s3_constants.GrantTypeCanonicalUser, + ID: &s3account.AccountAdmin.Id, + }, + }, + }, }, }, { @@ -124,7 +132,15 @@ var tcs = []*BucketMetadataTestCase{ DisplayName: &s3account.AccountAdmin.Name, ID: &s3account.AccountAdmin.Id, }, - Acl: nil, + Acl: []*s3.Grant{ + { + Permission: &s3_constants.PermissionFullControl, + Grantee: &s3.Grantee{ + Type: &s3_constants.GrantTypeCanonicalUser, + ID: &s3account.AccountAdmin.Id, + }, + }, + }, }, }, { @@ -135,7 +151,15 @@ var tcs = []*BucketMetadataTestCase{ DisplayName: &s3account.AccountAdmin.Name, ID: &s3account.AccountAdmin.Id, }, - Acl: nil, + Acl: []*s3.Grant{ + { + Permission: &s3_constants.PermissionFullControl, + Grantee: &s3.Grantee{ + Type: &s3_constants.GrantTypeCanonicalUser, + ID: &s3account.AccountAdmin.Id, + }, + }, + }, }, }, { @@ -146,7 +170,15 @@ var tcs = []*BucketMetadataTestCase{ DisplayName: &s3account.AccountAdmin.Name, ID: &s3account.AccountAdmin.Id, }, - Acl: nil, + Acl: []*s3.Grant{ + { + Permission: &s3_constants.PermissionFullControl, + Grantee: &s3.Grantee{ + Type: &s3_constants.GrantTypeCanonicalUser, + ID: &s3account.AccountAdmin.Id, + }, + }, + }, }, }, {