-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource/aws_iam_policy_attachment: Bypass
NoSuchEntity
error when …
…detaching groups, roles, and users (support group, role, and user renames) Reference: #5417 Previously from acceptance testing (before code updates): ``` --- FAIL: TestAccAWSIAMPolicyAttachment_Groups_RenamedGroup (8.82s) testing.go:568: Step 1 error: errors during apply: Error: [WARN] Error updating user, role, or group list from IAM Policy Attachment tf-acc-test-5552018730471644331: – NoSuchEntity: The group with name tf-acc-test-5552018730471644331-1 cannot be found. --- FAIL: TestAccAWSIAMPolicyAttachment_Roles_RenamedRole (10.31s) testing.go:568: Step 1 error: errors during apply: Error: [WARN] Error updating user, role, or group list from IAM Policy Attachment tf-acc-test-4256997168279122998: – NoSuchEntity: The role with name tf-acc-test-4256997168279122998-1 cannot be found. --- FAIL: TestAccAWSIAMPolicyAttachment_Users_RenamedUser (11.64s) testing.go:568: Step 1 error: errors during apply: Error: [WARN] Error updating user, role, or group list from IAM Policy Attachment tf-acc-test-5706224507827321055: – NoSuchEntity: The user with name tf-acc-test-5706224507827321055-1 cannot be found. ``` Output from acceptance testing: ``` --- PASS: TestAccAWSIAMPolicyAttachment_Groups_RenamedGroup (12.29s) --- PASS: TestAccAWSIAMPolicyAttachment_Users_RenamedUser (12.51s) --- PASS: TestAccAWSIAMPolicyAttachment_Roles_RenamedRole (12.92s) --- PASS: TestAccAWSIAMPolicyAttachment_basic (137.55s) --- PASS: TestAccAWSIAMPolicyAttachment_paginatedEntities (216.36s) ```
- Loading branch information
Showing
2 changed files
with
213 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters