forked from hashicorp/terraform-provider-google
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dataplex_datascan_full_profile.tf.erb (hashicorp#8700) (hashic…
…orp#15659) * Update dataplex_datascan_full_profile.tf.erb Add an export table * Add env vars for export table * Fix datascan and dataset references for full datascan example. * Use a var for datascan name across all the examples. * update resource name * update resource name for IAM Signed-off-by: Modular Magician <[email protected]>
- Loading branch information
1 parent
0d0ff2b
commit 198cec3
Showing
4 changed files
with
55 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
```release-note:none | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ func TestAccDataplexDatascanIamBindingGenerated(t *testing.T) { | |
}, | ||
{ | ||
ResourceName: "google_dataplex_datascan_iam_binding.foo", | ||
ImportStateId: fmt.Sprintf("projects/%s/locations/%s/dataScans/%s roles/viewer", envvar.GetTestProjectFromEnv(), envvar.GetTestRegionFromEnv(), fmt.Sprintf("tf-test-datascan%s", context["random_suffix"])), | ||
ImportStateId: fmt.Sprintf("projects/%s/locations/%s/dataScans/%s roles/viewer", envvar.GetTestProjectFromEnv(), envvar.GetTestRegionFromEnv(), fmt.Sprintf("tf-test-dataprofile-basic%s", context["random_suffix"])), | ||
ImportState: true, | ||
ImportStateVerify: true, | ||
}, | ||
|
@@ -55,7 +55,7 @@ func TestAccDataplexDatascanIamBindingGenerated(t *testing.T) { | |
}, | ||
{ | ||
ResourceName: "google_dataplex_datascan_iam_binding.foo", | ||
ImportStateId: fmt.Sprintf("projects/%s/locations/%s/dataScans/%s roles/viewer", envvar.GetTestProjectFromEnv(), envvar.GetTestRegionFromEnv(), fmt.Sprintf("tf-test-datascan%s", context["random_suffix"])), | ||
ImportStateId: fmt.Sprintf("projects/%s/locations/%s/dataScans/%s roles/viewer", envvar.GetTestProjectFromEnv(), envvar.GetTestRegionFromEnv(), fmt.Sprintf("tf-test-dataprofile-basic%s", context["random_suffix"])), | ||
ImportState: true, | ||
ImportStateVerify: true, | ||
}, | ||
|
@@ -82,7 +82,7 @@ func TestAccDataplexDatascanIamMemberGenerated(t *testing.T) { | |
}, | ||
{ | ||
ResourceName: "google_dataplex_datascan_iam_member.foo", | ||
ImportStateId: fmt.Sprintf("projects/%s/locations/%s/dataScans/%s roles/viewer user:[email protected]", envvar.GetTestProjectFromEnv(), envvar.GetTestRegionFromEnv(), fmt.Sprintf("tf-test-datascan%s", context["random_suffix"])), | ||
ImportStateId: fmt.Sprintf("projects/%s/locations/%s/dataScans/%s roles/viewer user:[email protected]", envvar.GetTestProjectFromEnv(), envvar.GetTestRegionFromEnv(), fmt.Sprintf("tf-test-dataprofile-basic%s", context["random_suffix"])), | ||
ImportState: true, | ||
ImportStateVerify: true, | ||
}, | ||
|
@@ -109,7 +109,7 @@ func TestAccDataplexDatascanIamPolicyGenerated(t *testing.T) { | |
}, | ||
{ | ||
ResourceName: "google_dataplex_datascan_iam_policy.foo", | ||
ImportStateId: fmt.Sprintf("projects/%s/locations/%s/dataScans/%s", envvar.GetTestProjectFromEnv(), envvar.GetTestRegionFromEnv(), fmt.Sprintf("tf-test-datascan%s", context["random_suffix"])), | ||
ImportStateId: fmt.Sprintf("projects/%s/locations/%s/dataScans/%s", envvar.GetTestProjectFromEnv(), envvar.GetTestRegionFromEnv(), fmt.Sprintf("tf-test-dataprofile-basic%s", context["random_suffix"])), | ||
ImportState: true, | ||
ImportStateVerify: true, | ||
}, | ||
|
@@ -118,7 +118,7 @@ func TestAccDataplexDatascanIamPolicyGenerated(t *testing.T) { | |
}, | ||
{ | ||
ResourceName: "google_dataplex_datascan_iam_policy.foo", | ||
ImportStateId: fmt.Sprintf("projects/%s/locations/%s/dataScans/%s", envvar.GetTestProjectFromEnv(), envvar.GetTestRegionFromEnv(), fmt.Sprintf("tf-test-datascan%s", context["random_suffix"])), | ||
ImportStateId: fmt.Sprintf("projects/%s/locations/%s/dataScans/%s", envvar.GetTestProjectFromEnv(), envvar.GetTestRegionFromEnv(), fmt.Sprintf("tf-test-dataprofile-basic%s", context["random_suffix"])), | ||
ImportState: true, | ||
ImportStateVerify: true, | ||
}, | ||
|
@@ -130,7 +130,7 @@ func testAccDataplexDatascanIamMember_basicGenerated(context map[string]interfac | |
return acctest.Nprintf(` | ||
resource "google_dataplex_datascan" "basic_profile" { | ||
location = "us-central1" | ||
data_scan_id = "tf-test-datascan%{random_suffix}" | ||
data_scan_id = "tf-test-dataprofile-basic%{random_suffix}" | ||
data { | ||
resource = "//bigquery.googleapis.com/projects/bigquery-public-data/datasets/samples/tables/shakespeare" | ||
|
@@ -161,7 +161,7 @@ func testAccDataplexDatascanIamPolicy_basicGenerated(context map[string]interfac | |
return acctest.Nprintf(` | ||
resource "google_dataplex_datascan" "basic_profile" { | ||
location = "us-central1" | ||
data_scan_id = "tf-test-datascan%{random_suffix}" | ||
data_scan_id = "tf-test-dataprofile-basic%{random_suffix}" | ||
data { | ||
resource = "//bigquery.googleapis.com/projects/bigquery-public-data/datasets/samples/tables/shakespeare" | ||
|
@@ -207,7 +207,7 @@ func testAccDataplexDatascanIamPolicy_emptyBinding(context map[string]interface{ | |
return acctest.Nprintf(` | ||
resource "google_dataplex_datascan" "basic_profile" { | ||
location = "us-central1" | ||
data_scan_id = "tf-test-datascan%{random_suffix}" | ||
data_scan_id = "tf-test-dataprofile-basic%{random_suffix}" | ||
data { | ||
resource = "//bigquery.googleapis.com/projects/bigquery-public-data/datasets/samples/tables/shakespeare" | ||
|
@@ -240,7 +240,7 @@ func testAccDataplexDatascanIamBinding_basicGenerated(context map[string]interfa | |
return acctest.Nprintf(` | ||
resource "google_dataplex_datascan" "basic_profile" { | ||
location = "us-central1" | ||
data_scan_id = "tf-test-datascan%{random_suffix}" | ||
data_scan_id = "tf-test-dataprofile-basic%{random_suffix}" | ||
data { | ||
resource = "//bigquery.googleapis.com/projects/bigquery-public-data/datasets/samples/tables/shakespeare" | ||
|
@@ -271,7 +271,7 @@ func testAccDataplexDatascanIamBinding_updateGenerated(context map[string]interf | |
return acctest.Nprintf(` | ||
resource "google_dataplex_datascan" "basic_profile" { | ||
location = "us-central1" | ||
data_scan_id = "tf-test-datascan%{random_suffix}" | ||
data_scan_id = "tf-test-dataprofile-basic%{random_suffix}" | ||
data { | ||
resource = "//bigquery.googleapis.com/projects/bigquery-public-data/datasets/samples/tables/shakespeare" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters