Skip to content

Commit

Permalink
Updating update test for entry group. (#10756) (#7399)
Browse files Browse the repository at this point in the history
[upstream:430f650871753e70486f7b43a1d028b1cce91276]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored May 21, 2024
1 parent 7a90a0f commit 6ced89d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions google-beta/services/dataplex/resource_dataplex_entry_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func TestAccDataplexEntryGroup_update(t *testing.T) {
Config: testAccDataplexEntryGroup_full(context),
},
{
ResourceName: "google_dataplex_entry_group.test_entry_group_full",
ResourceName: "google_dataplex_entry_group.test_entry_group",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"location", "entry_group_id", "labels", "terraform_labels"},
Expand All @@ -37,7 +37,7 @@ func TestAccDataplexEntryGroup_update(t *testing.T) {
Config: testAccDataplexEntryGroup_update(context),
},
{
ResourceName: "google_dataplex_entry_group.test_entry_group_basic",
ResourceName: "google_dataplex_entry_group.test_entry_group",
ImportState: true,
ImportStateVerify: true,
ImportStateVerifyIgnore: []string{"location", "entry_group_id", "labels", "terraform_labels"},
Expand All @@ -48,24 +48,24 @@ func TestAccDataplexEntryGroup_update(t *testing.T) {

func testAccDataplexEntryGroup_full(context map[string]interface{}) string {
return acctest.Nprintf(`
resource "google_dataplex_entry_group" "test_entry_group_full" {
entry_group_id = "tf-test-entry-group-full%{random_suffix}"
resource "google_dataplex_entry_group" "test_entry_group" {
entry_group_id = "tf-test-entry-group%{random_suffix}"
project = "%{project_name}"
location = "us-central1"
labels = { "tag": "test-tf" }
display_name = "terraform entry group"
description = "entry group created by Terraform"
}
`, context)
}

func testAccDataplexEntryGroup_update(context map[string]interface{}) string {
return acctest.Nprintf(`
resource "google_dataplex_entry_group" "test_entry_group_basic" {
entry_group_id = "tf-test-entry-group-basic%{random_suffix}"
resource "google_dataplex_entry_group" "test_entry_group" {
entry_group_id = "tf-test-entry-group%{random_suffix}"
project = "%{project_name}"
location = "us-central1"
labels = { "tag": "test-tf" }
display_name = "terraform entry group"
description = "entry group created by Terraform"
}
`, context)
}

0 comments on commit 6ced89d

Please sign in to comment.