Skip to content

Commit

Permalink
removed the added test
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardmedia committed Apr 20, 2021
1 parent 9d3f1ca commit cd4d52b
Showing 1 changed file with 0 additions and 108 deletions.
108 changes: 0 additions & 108 deletions mmv1/third_party/terraform/tests/resource_data_catalog_tag_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package google

import (
"fmt"
"testing"

"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
Expand Down Expand Up @@ -48,36 +47,6 @@ func TestAccDataCatalogTag_update(t *testing.T) {
})
}

func TestAccDataCatalogTag_parent_update(t *testing.T) {
t.Parallel()

randStr := randString(t, 10)

vcrTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckDataCatalogEntryDestroyProducer(t),
Steps: []resource.TestStep{
{
Config: testAccDataCatalogTag_parent_update(randStr, "entry"),
},
{
ResourceName: "google_data_catalog_tag.basic_tag",
ImportState: true,
ImportStateVerify: true,
},
{
Config: testAccDataCatalogTag_parent_update(randStr, "entry2"),
},
{
ResourceName: "google_data_catalog_tag.basic_tag",
ImportState: true,
ImportStateVerify: true,
},
},
})
}

func testAccDataCatalogTag_dataCatalogEntryTag_update(context map[string]interface{}) string {
return Nprintf(`
resource "google_data_catalog_entry" "entry" {
Expand Down Expand Up @@ -151,80 +120,3 @@ resource "google_data_catalog_tag" "basic_tag" {
}
`, context)
}

func testAccDataCatalogTag_parent_update(randStr, entryid string) string {
return fmt.Sprintf(`
resource "google_data_catalog_entry" "entry" {
entry_group = google_data_catalog_entry_group.entry_group.id
entry_id = "tf_test_my_entry1%s"
user_specified_type = "my_custom_type"
user_specified_system = "SomethingExternal"
}
resource "google_data_catalog_entry" "entry2" {
entry_group = google_data_catalog_entry_group.entry_group.id
entry_id = "tf_test_my_entry2%s"
user_specified_type = "my_custom_type"
user_specified_system = "SomethingExternal"
}
resource "google_data_catalog_entry_group" "entry_group" {
entry_group_id = "tf_test_my_entry_group2%s"
}
resource "google_data_catalog_tag_template" "tag_template" {
tag_template_id = "tf_test_template%s"
region = "us-central1"
display_name = "Demo Tag Template"
fields {
field_id = "source"
display_name = "Source of data asset"
type {
primitive_type = "STRING"
}
is_required = true
}
fields {
field_id = "num_rows"
display_name = "Number of rows in the data asset"
type {
primitive_type = "DOUBLE"
}
}
fields {
field_id = "pii_type"
display_name = "PII type"
type {
enum_type {
allowed_values {
display_name = "EMAIL"
}
allowed_values {
display_name = "SOCIAL SECURITY NUMBER"
}
allowed_values {
display_name = "NONE"
}
}
}
}
force_delete = "true"
}
resource "google_data_catalog_tag" "basic_tag" {
parent = google_data_catalog_entry.%s.id
template = google_data_catalog_tag_template.tag_template.id
fields {
field_name = "source"
string_value = "my-string"
}
}
`, randStr, randStr, randStr, randStr, entryid)
}

0 comments on commit cd4d52b

Please sign in to comment.