@@ -11,6 +11,7 @@ import (
1111 "github.com/aws/aws-sdk-go-v2/service/dataexchange"
1212 "github.com/hashicorp/terraform-plugin-testing/helper/resource"
1313 "github.com/hashicorp/terraform-plugin-testing/knownvalue"
14+ "github.com/hashicorp/terraform-plugin-testing/plancheck"
1415 "github.com/hashicorp/terraform-plugin-testing/statecheck"
1516 "github.com/hashicorp/terraform-plugin-testing/terraform"
1617 "github.com/hashicorp/terraform-plugin-testing/tfjsonpath"
@@ -119,6 +120,14 @@ func TestAccDataExchangeRevision_disappears(t *testing.T) {
119120 acctest .CheckSDKResourceDisappears (ctx , t , tfdataexchange .ResourceRevision (), resourceName ),
120121 ),
121122 ExpectNonEmptyPlan : true ,
123+ ConfigPlanChecks : resource.ConfigPlanChecks {
124+ PreApply : []plancheck.PlanCheck {
125+ plancheck .ExpectResourceAction (resourceName , plancheck .ResourceActionCreate ),
126+ },
127+ PostApplyPostRefresh : []plancheck.PlanCheck {
128+ plancheck .ExpectResourceAction (resourceName , plancheck .ResourceActionCreate ),
129+ },
130+ },
122131 },
123132 },
124133 })
@@ -144,6 +153,14 @@ func TestAccDataExchangeRevision_disappears_dataSet(t *testing.T) {
144153 acctest .CheckSDKResourceDisappears (ctx , t , tfdataexchange .ResourceRevision (), resourceName ),
145154 ),
146155 ExpectNonEmptyPlan : true ,
156+ ConfigPlanChecks : resource.ConfigPlanChecks {
157+ PreApply : []plancheck.PlanCheck {
158+ plancheck .ExpectResourceAction (resourceName , plancheck .ResourceActionCreate ),
159+ },
160+ PostApplyPostRefresh : []plancheck.PlanCheck {
161+ plancheck .ExpectResourceAction (resourceName , plancheck .ResourceActionCreate ),
162+ },
163+ },
147164 },
148165 },
149166 })
0 commit comments