aws/logical: fix backend test (#13323)

Remove the `[:64]` from
`TestAcceptanceBackend_AssumedRoleWithPolicyDoc()` since max length is
handled in `generateUniqueRoleName()`
This commit is contained in:
Theron Voran
2021-12-01 10:44:22 -08:00
committed by GitHub
parent 720db8e299
commit 56a40ba76d

View File

@@ -1067,7 +1067,7 @@ func TestAcceptanceBackend_iamUserGroups(t *testing.T) {
func TestAcceptanceBackend_AssumedRoleWithPolicyDoc(t *testing.T) {
t.Parallel()
roleName := generateUniqueRoleName(t.Name())[:64]
roleName := generateUniqueRoleName(t.Name())
// This looks a bit curious. The policy document and the role document act
// as a logical intersection of policies. The role allows ec2:Describe*
// (among other permissions). This policy allows everything BUT