Skip to content

Commit

Permalink
Add 'plancheck.ResourceActionUpdate'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed May 15, 2024
1 parent 77edf61 commit 16c3772
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/aws/ec2/ipam_pool_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"testing"

"github.com/hashicorp/terraform-plugin-testing/helper/resource"
"github.com/hashicorp/terraform-plugin-testing/plancheck"
"github.com/hashicorp/terraform-provider-awscc/internal/acctest"
)

Expand All @@ -30,6 +31,11 @@ func TestAccAWSEC2IPAMPool_update(t *testing.T) {
},
{
Config: testAccAWSEC2IPAMPoolConfig(&td, "desc2"),
ConfigPlanChecks: resource.ConfigPlanChecks{
PreApply: []plancheck.PlanCheck{
plancheck.ExpectResourceAction(resourceName, plancheck.ResourceActionUpdate),
},
},
Check: resource.ComposeTestCheckFunc(
td.CheckExistsInAWS(),
resource.TestCheckResourceAttr(resourceName, "description", "desc2"),
Expand Down

0 comments on commit 16c3772

Please sign in to comment.