diff options
| author | chrislu <chris.lu@gmail.com> | 2025-08-30 11:18:03 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-08-30 11:18:03 -0700 |
| commit | 87021a146027f83f911619f71b9c27bd51e9d55a (patch) | |
| tree | c7720f1c285683ce19d28931bd7c11b5475a2844 /weed/s3api/auth_credentials_test.go | |
| parent | 0748214c8e2f497a84b9392d2d7d4ec976bc84eb (diff) | |
| parent | 879d512b552d834136cfb746a239e6168e5c4ffb (diff) | |
| download | seaweedfs-origin/add-ec-vacuum.tar.xz seaweedfs-origin/add-ec-vacuum.zip | |
Merge branch 'master' into add-ec-vacuumorigin/add-ec-vacuum
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", |
