File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1006,8 +1006,8 @@ func TestAccIAMRole_Identity_ExistingResource_NoRefresh(t *testing.T) {
1006
1006
Check : resource .ComposeAggregateTestCheckFunc (
1007
1007
testAccCheckRoleExists (ctx , resourceName , & conf ),
1008
1008
),
1009
- // We DON'T want this error. A fix should cause this test to begin failing.
1010
- ExpectError : regexache . MustCompile ( `Missing Resource Identity After Update` ),
1009
+ // No error indicates the identity interceptor properly identified
1010
+ // a fully null identity on update and set values appropriately.
1011
1011
},
1012
1012
},
1013
1013
})
@@ -1047,7 +1047,9 @@ func TestAccIAMRole_Identity_ExistingResource_NoRefreshFailure(t *testing.T) {
1047
1047
Check : resource .ComposeAggregateTestCheckFunc (
1048
1048
testAccCheckRoleExists (ctx , resourceName , & conf ),
1049
1049
),
1050
- // We DON'T want this error. A fix should cause this test to begin failing.
1050
+ // On an update failure, the identity interceptor is not executed and both
1051
+ // the MalformedPolicyDocument error and a missing resource identity
1052
+ // error will be present.
1051
1053
ExpectError : regexache .MustCompile (`Missing Resource Identity After Update` ),
1052
1054
},
1053
1055
},
You can’t perform that action at this time.
0 commit comments