@@ -70,13 +70,13 @@ func testAccDataplexDatascanDataplexDatascanFullQuality_full(context map[string]
70
70
return acctest .Nprintf (`
71
71
72
72
resource "google_bigquery_dataset" "tf_test_dataset" {
73
- dataset_id = "tf_test_dataset_id "
73
+ dataset_id = "tf_test_dataset_id_%{random_suffix} "
74
74
default_table_expiration_ms = 3600000
75
75
}
76
76
77
77
resource "google_bigquery_table" "tf_test_table" {
78
78
dataset_id = google_bigquery_dataset.tf_test_dataset.dataset_id
79
- table_id = "tf_test_table "
79
+ table_id = "tf_test_table_%{random_suffix} "
80
80
deletion_protection = false
81
81
schema = <<EOF
82
82
[
@@ -105,7 +105,7 @@ resource "google_dataplex_datascan" "full_quality" {
105
105
}
106
106
107
107
data {
108
- resource = "//bigquery.googleapis.com/projects/%{project_name}/datasets/tf_test_dataset_id /tables/tf_test_table"
108
+ resource = "//bigquery.googleapis.com/projects/%{project_name}/datasets/${google_bigquery_dataset.tf_test_dataset.dataset_id} /tables/${google_bigquery_table. tf_test_table.table_id} "
109
109
}
110
110
111
111
execution_spec {
@@ -159,13 +159,13 @@ resource "google_dataplex_datascan" "full_quality" {
159
159
func testAccDataplexDatascanDataplexDatascanFullQuality_update (context map [string ]interface {}) string {
160
160
return acctest .Nprintf (`
161
161
resource "google_bigquery_dataset" "tf_test_dataset" {
162
- dataset_id = "tf_test_dataset_id "
162
+ dataset_id = "tf_test_dataset_id_%{random_suffix} "
163
163
default_table_expiration_ms = 3600000
164
164
}
165
165
166
166
resource "google_bigquery_table" "tf_test_table" {
167
167
dataset_id = google_bigquery_dataset.tf_test_dataset.dataset_id
168
- table_id = "tf_test_table "
168
+ table_id = "tf_test_table_%{random_suffix} "
169
169
deletion_protection = false
170
170
schema = <<EOF
171
171
[
@@ -194,7 +194,7 @@ resource "google_dataplex_datascan" "full_quality" {
194
194
}
195
195
196
196
data {
197
- resource = "//bigquery.googleapis.com/projects/%{project_name}/datasets/tf_test_dataset_id /tables/tf_test_table"
197
+ resource = "//bigquery.googleapis.com/projects/%{project_name}/datasets/${google_bigquery_dataset.tf_test_dataset.dataset_id} /tables/${google_bigquery_table. tf_test_table.table_id} "
198
198
}
199
199
200
200
execution_spec {
0 commit comments