From 832a0d68eb60a08320222d2819261645768d7a17 Mon Sep 17 00:00:00 2001 From: Chris Hawk Date: Tue, 29 Oct 2024 10:25:30 -0700 Subject: [PATCH] Unbreak TestAccBigQueryDataset_withProvider5 (#12146) --- .../bigquery/resource_bigquery_dataset_test.go | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/mmv1/third_party/terraform/services/bigquery/resource_bigquery_dataset_test.go b/mmv1/third_party/terraform/services/bigquery/resource_bigquery_dataset_test.go index 29478f407afc..a3025f6047e8 100644 --- a/mmv1/third_party/terraform/services/bigquery/resource_bigquery_dataset_test.go +++ b/mmv1/third_party/terraform/services/bigquery/resource_bigquery_dataset_test.go @@ -166,7 +166,7 @@ func TestAccBigQueryDataset_withProvider5(t *testing.T) { CheckDestroy: testAccCheckBigQueryDatasetDestroyProducer(t), Steps: []resource.TestStep{ { - Config: testAccBigQueryDataset_withoutLabels(datasetID), + Config: testAccBigQueryDataset_withoutLabelsV4(datasetID), ExternalProviders: oldVersion, Check: resource.ComposeTestCheckFunc( resource.TestCheckNoResourceAttr("google_bigquery_dataset.test", "labels.%"), @@ -509,6 +509,19 @@ resource "google_bigquery_dataset" "test" { `, datasetID) } +func testAccBigQueryDataset_withoutLabelsV4(datasetID string) string { + return fmt.Sprintf(` +resource "google_bigquery_dataset" "test" { + dataset_id = "%s" + friendly_name = "foo" + description = "This is a foo description" + location = "EU" + default_partition_expiration_ms = 3600000 + default_table_expiration_ms = 3600000 +} +`, datasetID) +} + func testAccBigQueryDataset(datasetID string) string { return fmt.Sprintf(` resource "google_bigquery_dataset" "test" {