Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
unnatinadupalli committed Dec 17, 2024
1 parent 26fd0c5 commit c2f86d0
Showing 1 changed file with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,19 @@ func TestAccParallelstoreInstance_parallelstoreInstanceBasicExample_update(t *te

CheckDestroy: testAccCheckParallelstoreInstanceDestroyProducer(t),
Steps: []resource.TestStep{

{{ if ne $.TargetVersionName `ga` -}}
{
Config: testAccParallelstoreInstance_parallelstoreInstanceBasicExampleBeta_basic(context),
},
{
ResourceName: "google_parallelstore_instance.instance",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"location", "instance_id", "labels", "terraform_labels"},
},
{{ else }}
{
Config: testAccParallelstoreInstance_parallelstoreInstanceBasicExample_basic(context),
},
{
Expand All @@ -60,16 +72,6 @@ func TestAccParallelstoreInstance_parallelstoreInstanceBasicExample_update(t *te
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"location", "instance_id", "labels", "terraform_labels"},
},
{{ if ne $.TargetVersionName `ga` -}}
{
Config: testAccParallelstoreInstance_parallelstoreInstanceBasicExampleBeta_basic(context),
},
{
ResourceName: "google_parallelstore_instance.instance",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"location", "instance_id", "labels", "terraform_labels"},
},
{{ end }}
},
})
Expand Down

0 comments on commit c2f86d0

Please sign in to comment.