Skip to content

Commit

Permalink
Enforce mutual exclusivity among view, materialized view, and schema …
Browse files Browse the repository at this point in the history
…in BigQuery table config
  • Loading branch information
wj-chen committed Aug 1, 2023
1 parent 4c62066 commit bed2a3c
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions mmv1/third_party/terraform/tests/resource_bigquery_table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,37 @@ func TestAccBigQueryTable_WithViewAndSchema(t *testing.T) {
CheckDestroy: testAccCheckBigQueryTableDestroyProducer(t),
Steps: []resource.TestStep{
{
<<<<<<< HEAD
<<<<<<< HEAD
Config: testAccBigQueryTableWithViewAndSchema(datasetID, tableID, "table description"),
ExpectError: regexp.MustCompile("\"view\": conflicts with schema"),
=======
<<<<<<< HEAD
Config: testAccBigQueryTableWithViewAndSchema(datasetID, tableID, "table description1"),
},
{
ResourceName: "google_bigquery_table.test",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"deletion_protection"},
},
{
Config: testAccBigQueryTableWithViewAndSchema(datasetID, tableID, "table description2"),
},
{
ResourceName: "google_bigquery_table.test",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"deletion_protection"},
=======
Config: testAccBigQueryTableWithViewAndSchema(datasetID, tableID, "table description"),
ExpectError: regexp.MustCompile("\"view\": conflicts with schema"),
>>>>>>> 5471308bd (add ConflictsWith to resource_bigquery_table)
>>>>>>> 5a902d280 (Enforce mutual exclusivity among view, materialized view, and schema in BigQuery table config)
=======
Config: testAccBigQueryTableWithViewAndSchema(datasetID, tableID, "table description"),
ExpectError: regexp.MustCompile("\"view\": conflicts with schema"),
>>>>>>> b56cb632b (fix merge conflict)
},
},
})
Expand Down Expand Up @@ -473,6 +502,14 @@ func TestAccBigQueryTable_MaterializedView_DailyTimePartioning_Update(t *testing
})
}

<<<<<<< HEAD
<<<<<<< HEAD
=======
<<<<<<< HEAD
=======
>>>>>>> 5a902d280 (Enforce mutual exclusivity among view, materialized view, and schema in BigQuery table config)
=======
>>>>>>> b56cb632b (fix merge conflict)
func TestAccBigQueryTable_MaterializedView_WithSchema(t *testing.T) {
t.Parallel()

Expand Down Expand Up @@ -515,6 +552,13 @@ func TestAccBigQueryTable_MaterializedView_WithView(t *testing.T) {
})
}

<<<<<<< HEAD
<<<<<<< HEAD
=======
>>>>>>> 5471308bd (add ConflictsWith to resource_bigquery_table)
>>>>>>> 5a902d280 (Enforce mutual exclusivity among view, materialized view, and schema in BigQuery table config)
=======
>>>>>>> b56cb632b (fix merge conflict)
func TestAccBigQueryExternalDataTable_parquet(t *testing.T) {
t.Parallel()

Expand Down

0 comments on commit bed2a3c

Please sign in to comment.