Skip to content

Commit

Permalink
Updating update test for entry group. (GoogleCloudPlatform#10756)
Browse files Browse the repository at this point in the history
  • Loading branch information
avijain25 authored May 21, 2024
1 parent 9c8826e commit 430f650
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
2 changes: 0 additions & 2 deletions mmv1/products/dataplex/EntryGroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ name: 'EntryGroup'
base_url: 'projects/{{project}}/locations/{{location}}/entryGroups/{{entry_group_id}}'
self_link: 'projects/{{project}}/locations/{{location}}/entryGroups/{{entry_group_id}}'
create_url: 'projects/{{project}}/locations/{{location}}/entryGroups?entryGroupId={{entry_group_id}}'
update_url: 'projects/{{project}}/locations/{{location}}/entryGroups/{{entry_group_id}}'
delete_url: 'projects/{{project}}/locations/{{location}}/entryGroups/{{entry_group_id}}'
update_verb: :PATCH
update_mask: true
description: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,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 @@ -35,7 +35,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 @@ -46,24 +46,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 430f650

Please sign in to comment.