Skip to content

Commit

Permalink
Unbreak TestAccBigQueryDataset_withProvider5 (#12146)
Browse files Browse the repository at this point in the history
  • Loading branch information
SirGitsalot authored Oct 29, 2024
1 parent 9b27247 commit 832a0d6
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.%"),
Expand Down Expand Up @@ -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" {
Expand Down

0 comments on commit 832a0d6

Please sign in to comment.