-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace PreConfig Disappears Testing #13820
Comments
…tAccCheckResourceDisappears Reference: #13820 Output from acceptance testing: ``` --- PASS: TestAccAWSAppCookieStickinessPolicy_disappears_ELB (16.05s) --- PASS: TestAccAWSAppCookieStickinessPolicy_disappears (18.31s) --- PASS: TestAccAWSEcsTaskDefinition_disappears (15.18s) --- PASS: TestAccAWSGlueCatalogTable_disappears (10.65s) --- PASS: TestAccAWSLBCookieStickinessPolicy_disappears_ELB (18.22s) --- PASS: TestAccAWSLBCookieStickinessPolicy_disappears (21.69s) --- PASS: TestAccAWSSSMAssociation_disappears (85.35s) ```
…tAccCheckResourceDisappears (#16305) * tests/provider: Migrate remaining PreConfig disappears testing to testAccCheckResourceDisappears Reference: #13820 Output from acceptance testing: ``` --- PASS: TestAccAWSAppCookieStickinessPolicy_disappears_ELB (16.05s) --- PASS: TestAccAWSAppCookieStickinessPolicy_disappears (18.31s) --- PASS: TestAccAWSEcsTaskDefinition_disappears (15.18s) --- PASS: TestAccAWSGlueCatalogTable_disappears (10.65s) --- PASS: TestAccAWSLBCookieStickinessPolicy_disappears_ELB (18.22s) --- PASS: TestAccAWSLBCookieStickinessPolicy_disappears (21.69s) --- PASS: TestAccAWSSSMAssociation_disappears (85.35s) ``` * tests/resource/aws_lb_cookie_stickiness_policy: Remove now unused configuration Previously: ``` aws/resource_aws_lb_cookie_stickiness_policy_test.go:191:6: `testAccLBCookieStickinessPolicyConfigDestroy` is unused (deadcode) func testAccLBCookieStickinessPolicyConfigDestroy(rName string) string { ^ ```
This has been released in version 3.20.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Description
Certain resource acceptance testing is using an older style for testing out-of-band resource deletions via
PreConfig
, e.g.This can be replaced with the easier and more consistent
testAccCheckResourceDisappears()
function. Example in the Contributing Guide:Affected Resource(s)
aws_app_cookie_stickiness_policy
aws_ebs_snapshot
aws_ecs_task_definition
aws_glue_catalog_database
aws_glue_catalog_table
aws_glue_crawler
aws_lb_cookie_stickiness_policy
aws_ssm_association
NOTE: Ignore these (we may need a different setup for this in-deletion state testing):
TestAccAWSDBInstance_IsAlreadyBeingDeleted
TestAccAWSRDSClusterInstance_isAlreadyBeingDeleted
References
The text was updated successfully, but these errors were encountered: