GoogleCloudPlatform / terraform-validator

Terraform Validator is not an officially supported Google product; it is a library for conversion of Terraform plan data to CAI Assets. If you have been using terraform-validator directly in the past, we recommend migrating to `gcloud beta terraform vet`.
https://cloud.google.com/docs/terraform/policy-validation
Apache License 2.0
437 stars 93 forks source link

Ignore cloud_run_v2_job.launch_stage in tests #1495

Closed modular-magician closed 1 year ago

modular-magician commented 1 year ago

This is a mitigation for https://github.com/hashicorp/terraform-provider-google/issues/14083 until we determine the best resolution. When we have a better option, this change should be reverted.

Since the API requires a BETA launch stage, but then returns a GA launch stage when complete, we get a permadiff that cannot be resolved. This change ignores the field for now to avoid the permadiff and allow all other testing to proceed.

If this PR is for Terraform, I acknowledge that I have:

Release Note Template for Downstream PRs (will be copied)

Derived from https://github.com/GoogleCloudPlatform/magic-modules/pull/7533