Skip to content

Commit 832a0d6

Browse files
authored
Unbreak TestAccBigQueryDataset_withProvider5 (#12146)
1 parent 9b27247 commit 832a0d6

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

mmv1/third_party/terraform/services/bigquery/resource_bigquery_dataset_test.go

+14-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func TestAccBigQueryDataset_withProvider5(t *testing.T) {
166166
CheckDestroy: testAccCheckBigQueryDatasetDestroyProducer(t),
167167
Steps: []resource.TestStep{
168168
{
169-
Config: testAccBigQueryDataset_withoutLabels(datasetID),
169+
Config: testAccBigQueryDataset_withoutLabelsV4(datasetID),
170170
ExternalProviders: oldVersion,
171171
Check: resource.ComposeTestCheckFunc(
172172
resource.TestCheckNoResourceAttr("google_bigquery_dataset.test", "labels.%"),
@@ -509,6 +509,19 @@ resource "google_bigquery_dataset" "test" {
509509
`, datasetID)
510510
}
511511

512+
func testAccBigQueryDataset_withoutLabelsV4(datasetID string) string {
513+
return fmt.Sprintf(`
514+
resource "google_bigquery_dataset" "test" {
515+
dataset_id = "%s"
516+
friendly_name = "foo"
517+
description = "This is a foo description"
518+
location = "EU"
519+
default_partition_expiration_ms = 3600000
520+
default_table_expiration_ms = 3600000
521+
}
522+
`, datasetID)
523+
}
524+
512525
func testAccBigQueryDataset(datasetID string) string {
513526
return fmt.Sprintf(`
514527
resource "google_bigquery_dataset" "test" {

0 commit comments

Comments
 (0)