From 031a85c95eebcc50e90cedb737ea6e2e62fdb824 Mon Sep 17 00:00:00 2001 From: Sarah French Date: Mon, 11 Mar 2024 15:48:23 +0000 Subject: [PATCH] Skip provider-defined functions' acc tests in VCR mode --- mmv1/third_party/terraform/functions/location_from_id_test.go | 2 ++ mmv1/third_party/terraform/functions/project_from_id_test.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/mmv1/third_party/terraform/functions/location_from_id_test.go b/mmv1/third_party/terraform/functions/location_from_id_test.go index 7eb9725d2f1e..55945b09f089 100644 --- a/mmv1/third_party/terraform/functions/location_from_id_test.go +++ b/mmv1/third_party/terraform/functions/location_from_id_test.go @@ -12,6 +12,8 @@ import ( func TestAccProviderFunction_location_from_id(t *testing.T) { t.Parallel() + // Skipping due to requiring TF 1.8.0 in VCR systems : https://github.com/hashicorp/terraform-provider-google/issues/17451 + acctest.SkipIfVcr(t) location := envvar.GetTestRegionFromEnv() locationRegex := regexp.MustCompile(fmt.Sprintf("^%s$", location)) diff --git a/mmv1/third_party/terraform/functions/project_from_id_test.go b/mmv1/third_party/terraform/functions/project_from_id_test.go index 1a513905e71b..02921aaed332 100644 --- a/mmv1/third_party/terraform/functions/project_from_id_test.go +++ b/mmv1/third_party/terraform/functions/project_from_id_test.go @@ -12,6 +12,8 @@ import ( func TestAccProviderFunction_project_from_id(t *testing.T) { t.Parallel() + // Skipping due to requiring TF 1.8.0 in VCR systems : https://github.com/hashicorp/terraform-provider-google/issues/17451 + acctest.SkipIfVcr(t) projectId := envvar.GetTestProjectFromEnv() projectIdRegex := regexp.MustCompile(fmt.Sprintf("^%s$", projectId))