From 430f650871753e70486f7b43a1d028b1cce91276 Mon Sep 17 00:00:00 2001 From: Avi Jain <57588332+avijain25@users.noreply.github.com> Date: Tue, 21 May 2024 17:39:31 +0000 Subject: [PATCH] Updating update test for entry group. (#10756) --- mmv1/products/dataplex/EntryGroup.yaml | 2 -- .../resource_dataplex_entry_group_test.go | 20 +++++++++---------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/mmv1/products/dataplex/EntryGroup.yaml b/mmv1/products/dataplex/EntryGroup.yaml index 6d5ef7c445bc..82fa1f32c4c2 100644 --- a/mmv1/products/dataplex/EntryGroup.yaml +++ b/mmv1/products/dataplex/EntryGroup.yaml @@ -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: | diff --git a/mmv1/third_party/terraform/services/dataplex/resource_dataplex_entry_group_test.go b/mmv1/third_party/terraform/services/dataplex/resource_dataplex_entry_group_test.go index ba26d84d2a01..a00042193c97 100644 --- a/mmv1/third_party/terraform/services/dataplex/resource_dataplex_entry_group_test.go +++ b/mmv1/third_party/terraform/services/dataplex/resource_dataplex_entry_group_test.go @@ -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"}, @@ -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"}, @@ -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) }