Skip to content

Commit

Permalink
send friendly_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Sun committed Mar 9, 2023
1 parent 85d43ce commit c7b7ace
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mmv1/products/bigquery/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ overrides: !ruby/object:Overrides::ResourceOverrides
default_from_api: true
maxTimeTravelHours: !ruby/object:Overrides::Terraform::PropertyOverride
default_from_api: true
friendlyName: !ruby/object:Overrides::Terraform::PropertyOverride
send_empty_value: true
custom_code: !ruby/object:Provider::Terraform::CustomCode
constants: templates/terraform/constants/bigquery_dataset.go.erb
docs: !ruby/object:Provider::Terraform::Docs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ func TestAccBigQueryDataset_basic(t *testing.T) {
ImportState: true,
ImportStateVerify: true,
},
{
Config: testAccBigQueryDatasetUpdated2(datasetID),
},
{
ResourceName: "google_bigquery_dataset.test",
ImportState: true,
ImportStateVerify: true,
},
},
})
}
Expand Down Expand Up @@ -212,6 +220,24 @@ resource "google_bigquery_dataset" "test" {
`, datasetID)
}

func testAccBigQueryDatasetUpdated2(datasetID string) string {
return fmt.Sprintf(`
resource "google_bigquery_dataset" "test" {
dataset_id = "%s"
# friendly_name = "bar"
description = "This is a bar description"
location = "EU"
default_partition_expiration_ms = 7200000
default_table_expiration_ms = 7200000
labels = {
env = "bar"
default_table_expiration_ms = 7200000
}
}
`, datasetID)
}

func testAccBigQueryDatasetDeleteContents(datasetID string) string {
return fmt.Sprintf(`
resource "google_bigquery_dataset" "contents_test" {
Expand Down

0 comments on commit c7b7ace

Please sign in to comment.