diff options
Diffstat (limited to 'weed/s3api/auth_credentials_test.go')
| -rw-r--r-- | weed/s3api/auth_credentials_test.go | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/weed/s3api/auth_credentials_test.go b/weed/s3api/auth_credentials_test.go index ae89285a2..f1d4a21bd 100644 --- a/weed/s3api/auth_credentials_test.go +++ b/weed/s3api/auth_credentials_test.go @@ -191,8 +191,9 @@ func TestLoadS3ApiConfiguration(t *testing.T) { }, }, expectIdent: &Identity{ - Name: "notSpecifyAccountId", - Account: &AccountAdmin, + Name: "notSpecifyAccountId", + Account: &AccountAdmin, + PrincipalArn: "arn:seaweed:iam::user/notSpecifyAccountId", Actions: []Action{ "Read", "Write", @@ -216,8 +217,9 @@ func TestLoadS3ApiConfiguration(t *testing.T) { }, }, expectIdent: &Identity{ - Name: "specifiedAccountID", - Account: &specifiedAccount, + Name: "specifiedAccountID", + Account: &specifiedAccount, + PrincipalArn: "arn:seaweed:iam::user/specifiedAccountID", Actions: []Action{ "Read", "Write", @@ -233,8 +235,9 @@ func TestLoadS3ApiConfiguration(t *testing.T) { }, }, expectIdent: &Identity{ - Name: "anonymous", - Account: &AccountAnonymous, + Name: "anonymous", + Account: &AccountAnonymous, + PrincipalArn: "arn:seaweed:iam::user/anonymous", Actions: []Action{ "Read", "Write", |
