File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -1003,10 +1003,7 @@ func TestAccIAMRole_Identity_ExistingResource_NoRefresh_OnError(t *testing.T) {
1003
1003
{
1004
1004
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
1005
1005
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` ),
1010
1007
},
1011
1008
},
1012
1009
})
@@ -1038,10 +1035,7 @@ func TestAccIAMRole_Identity_ExistingResource_OnError(t *testing.T) {
1038
1035
{
1039
1036
ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories ,
1040
1037
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` ),
1045
1039
},
1046
1040
},
1047
1041
})
You can’t perform that action at this time.
0 commit comments