Skip to content

Commit

Permalink
Modify test for BigQuery dataset case with iam_member
Browse files Browse the repository at this point in the history
  • Loading branch information
syou6162 committed Oct 20, 2023
1 parent 643e900 commit b2ada54
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func TestAccBigQueryDataset_access(t *testing.T) {
ImportStateVerifyIgnore: []string{"labels", "terraform_labels"},
},
{
Config: testAccBigQueryDatasetWithTwoAccess(datasetID),
Config: testAccBigQueryDatasetWithThreeAccess(datasetID),
},
{
ResourceName: "google_bigquery_dataset.access_test",
Expand Down Expand Up @@ -504,7 +504,7 @@ resource "google_bigquery_dataset" "access_test" {
`, datasetID)
}

func testAccBigQueryDatasetWithTwoAccess(datasetID string) string {
func testAccBigQueryDatasetWithThreeAccess(datasetID string) string {
return fmt.Sprintf(`
resource "google_bigquery_dataset" "access_test" {
dataset_id = "%s"
Expand All @@ -517,6 +517,10 @@ resource "google_bigquery_dataset" "access_test" {
role = "READER"
domain = "hashicorp.com"
}
access {
role = "READER"
iam_meber = "deleted:group:my-group@my_company.com?uid=123456789"
}
labels = {
env = "foo"
Expand Down

0 comments on commit b2ada54

Please sign in to comment.