Skip to content

Commit df3f259

Browse files
committed
Add plancheck for update test
1 parent 9beb61d commit df3f259

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mmv1/third_party/terraform/services/iamworkforcepool/resource_iam_oauth_client_credential_test.go.tmpl

+11
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"testing"
55

66
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
7+
"github.com/hashicorp/terraform-plugin-testing/plancheck"
78

89
"github.com/hashicorp/terraform-provider-google/google/acctest"
910
)
@@ -32,6 +33,11 @@ func TestAccIAMWorkforcePoolOauthClientCredential_full(t *testing.T) {
3233
},
3334
{
3435
Config: testAccIAMWorkforcePoolOauthClientCredential_full_update(context),
36+
ConfigPlanChecks: resource.ConfigPlanChecks{
37+
PreApply: []plancheck.PlanCheck{
38+
plancheck.ExpectResourceAction("google_iam_oauth_client_credential.example", plancheck.ResourceActionUpdate),
39+
},
40+
},
3541
},
3642
{
3743
ResourceName: "google_iam_oauth_client_credential.example",
@@ -41,6 +47,11 @@ func TestAccIAMWorkforcePoolOauthClientCredential_full(t *testing.T) {
4147
},
4248
{
4349
Config: testAccIAMWorkforcePoolOauthClientCredential_full_cleanOptionalFields(context),
50+
ConfigPlanChecks: resource.ConfigPlanChecks{
51+
PreApply: []plancheck.PlanCheck{
52+
plancheck.ExpectResourceAction("google_iam_oauth_client_credential.example", plancheck.ResourceActionUpdate),
53+
},
54+
},
4455
},
4556
{
4657
ResourceName: "google_iam_oauth_client_credential.example",

0 commit comments

Comments
 (0)