Skip to content

Commit 5ee71ee

Browse files
Add plan checks to compute instance template tests
1 parent ca1fdaa commit 5ee71ee

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mmv1/third_party/terraform/services/compute/resource_compute_instance_template_test.go.tmpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"testing"
1414
"time"
1515

16+
"github.com/hashicorp/terraform-plugin-testing/plancheck"
1617
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1718
"github.com/hashicorp/terraform-plugin-testing/terraform"
1819
"github.com/hashicorp/terraform-provider-google/google/acctest"
@@ -1600,6 +1601,11 @@ func TestAccComputeInstance_IPv6ExternalRecreate(t *testing.T) {
16001601
testAccCheckComputeInstanceExists(
16011602
t, "google_compute_instance.test", &instance),
16021603
),
1604+
ConfigPlanChecks: resource.ConfigPlanChecks{
1605+
PreApply: []plancheck.PlanCheck{
1606+
plancheck.ExpectResourceAction("google_compute_instance.test", plancheck.ResourceActionReplace),
1607+
},
1608+
},
16031609
},
16041610
{
16051611
ResourceName: "google_compute_instance.test",

0 commit comments

Comments
 (0)