Skip to content

Commit

Permalink
add test case for ram role arn with sts token
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian authored and yndu13 committed Aug 29, 2024
1 parent 665622f commit af7c74d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions credentials/credential_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ func TestNewCredentialWithRAMRoleARN(t *testing.T) {
cred, err = NewCredential(config)
assert.Nil(t, err)
assert.NotNil(t, cred)

// with sts should ok
config.SetSecurityToken("securitytoken")
cred, err = NewCredential(config)
assert.Nil(t, err)
assert.NotNil(t, cred)
}

func TestNewCredentialWithBearerToken(t *testing.T) {
Expand Down

0 comments on commit af7c74d

Please sign in to comment.