Skip to content

Commit 630192c

Browse files
committed
r/aws_iam_role(test): semgrep fixes
1 parent 6553df9 commit 630192c

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

internal/service/iam/role_test.go

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,10 +1003,7 @@ func TestAccIAMRole_Identity_ExistingResource_NoRefresh_OnError(t *testing.T) {
10031003
{
10041004
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories,
10051005
Config: testAccRoleConfig_invalidAssumeRolePolicy(rName),
1006-
Check: resource.ComposeAggregateTestCheckFunc(
1007-
testAccCheckRoleExists(ctx, resourceName, &conf),
1008-
),
1009-
ExpectError: regexache.MustCompile(`MalformedPolicyDocument: Unknown field invalid`),
1006+
ExpectError: regexache.MustCompile(`MalformedPolicyDocument: Unknown field invalid`),
10101007
},
10111008
},
10121009
})
@@ -1038,10 +1035,7 @@ func TestAccIAMRole_Identity_ExistingResource_OnError(t *testing.T) {
10381035
{
10391036
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories,
10401037
Config: testAccRoleConfig_invalidAssumeRolePolicy(rName),
1041-
Check: resource.ComposeAggregateTestCheckFunc(
1042-
testAccCheckRoleExists(ctx, resourceName, &conf),
1043-
),
1044-
ExpectError: regexache.MustCompile(`MalformedPolicyDocument: Unknown field invalid`),
1038+
ExpectError: regexache.MustCompile(`MalformedPolicyDocument: Unknown field invalid`),
10451039
},
10461040
},
10471041
})

0 commit comments

Comments
 (0)