@@ -30,7 +30,7 @@ func TestAccDataCatalogPolicyTagIamBindingGenerated(t *testing.T) {
3030
3131 vcrTest (t , resource.TestCase {
3232 PreCheck : func () { testAccPreCheck (t ) },
33- Providers : testAccProvidersOiCS ,
33+ Providers : testAccProviders ,
3434 Steps : []resource.TestStep {
3535 {
3636 Config : testAccDataCatalogPolicyTagIamBinding_basicGenerated (context ),
@@ -53,7 +53,7 @@ func TestAccDataCatalogPolicyTagIamMemberGenerated(t *testing.T) {
5353
5454 vcrTest (t , resource.TestCase {
5555 PreCheck : func () { testAccPreCheck (t ) },
56- Providers : testAccProvidersOiCS ,
56+ Providers : testAccProviders ,
5757 Steps : []resource.TestStep {
5858 {
5959 // Test Iam Member creation (no update for member, no need to test)
@@ -73,7 +73,7 @@ func TestAccDataCatalogPolicyTagIamPolicyGenerated(t *testing.T) {
7373
7474 vcrTest (t , resource.TestCase {
7575 PreCheck : func () { testAccPreCheck (t ) },
76- Providers : testAccProvidersOiCS ,
76+ Providers : testAccProviders ,
7777 Steps : []resource.TestStep {
7878 {
7979 Config : testAccDataCatalogPolicyTagIamPolicy_basicGenerated (context ),
@@ -88,22 +88,18 @@ func TestAccDataCatalogPolicyTagIamPolicyGenerated(t *testing.T) {
8888func testAccDataCatalogPolicyTagIamMember_basicGenerated (context map [string ]interface {}) string {
8989 return Nprintf (`
9090resource "google_data_catalog_policy_tag" "basic_policy_tag" {
91- provider = google-beta
9291 taxonomy = google_data_catalog_taxonomy.my_taxonomy.id
9392 display_name = "Low security"
9493 description = "A policy tag normally associated with low security items"
9594}
9695
9796resource "google_data_catalog_taxonomy" "my_taxonomy" {
98- provider = google-beta
99- region = "us"
10097 display_name = "tf_test_taxonomy_display_name%{random_suffix}"
10198 description = "A collection of policy tags"
10299 activated_policy_types = ["FINE_GRAINED_ACCESS_CONTROL"]
103100}
104101
105102resource "google_data_catalog_policy_tag_iam_member" "foo" {
106- provider = google-beta
107103 policy_tag = google_data_catalog_policy_tag.basic_policy_tag.name
108104 role = "%{role}"
109105@@ -114,30 +110,25 @@ resource "google_data_catalog_policy_tag_iam_member" "foo" {
114110func testAccDataCatalogPolicyTagIamPolicy_basicGenerated (context map [string ]interface {}) string {
115111 return Nprintf (`
116112resource "google_data_catalog_policy_tag" "basic_policy_tag" {
117- provider = google-beta
118113 taxonomy = google_data_catalog_taxonomy.my_taxonomy.id
119114 display_name = "Low security"
120115 description = "A policy tag normally associated with low security items"
121116}
122117
123118resource "google_data_catalog_taxonomy" "my_taxonomy" {
124- provider = google-beta
125- region = "us"
126119 display_name = "tf_test_taxonomy_display_name%{random_suffix}"
127120 description = "A collection of policy tags"
128121 activated_policy_types = ["FINE_GRAINED_ACCESS_CONTROL"]
129122}
130123
131124data "google_iam_policy" "foo" {
132- provider = google-beta
133125 binding {
134126 role = "%{role}"
135127 members = ["user:[email protected] "] 136128 }
137129}
138130
139131resource "google_data_catalog_policy_tag_iam_policy" "foo" {
140- provider = google-beta
141132 policy_tag = google_data_catalog_policy_tag.basic_policy_tag.name
142133 policy_data = data.google_iam_policy.foo.policy_data
143134}
@@ -147,26 +138,21 @@ resource "google_data_catalog_policy_tag_iam_policy" "foo" {
147138func testAccDataCatalogPolicyTagIamPolicy_emptyBinding (context map [string ]interface {}) string {
148139 return Nprintf (`
149140resource "google_data_catalog_policy_tag" "basic_policy_tag" {
150- provider = google-beta
151141 taxonomy = google_data_catalog_taxonomy.my_taxonomy.id
152142 display_name = "Low security"
153143 description = "A policy tag normally associated with low security items"
154144}
155145
156146resource "google_data_catalog_taxonomy" "my_taxonomy" {
157- provider = google-beta
158- region = "us"
159147 display_name = "tf_test_taxonomy_display_name%{random_suffix}"
160148 description = "A collection of policy tags"
161149 activated_policy_types = ["FINE_GRAINED_ACCESS_CONTROL"]
162150}
163151
164152data "google_iam_policy" "foo" {
165- provider = google-beta
166153}
167154
168155resource "google_data_catalog_policy_tag_iam_policy" "foo" {
169- provider = google-beta
170156 policy_tag = google_data_catalog_policy_tag.basic_policy_tag.name
171157 policy_data = data.google_iam_policy.foo.policy_data
172158}
@@ -176,22 +162,18 @@ resource "google_data_catalog_policy_tag_iam_policy" "foo" {
176162func testAccDataCatalogPolicyTagIamBinding_basicGenerated (context map [string ]interface {}) string {
177163 return Nprintf (`
178164resource "google_data_catalog_policy_tag" "basic_policy_tag" {
179- provider = google-beta
180165 taxonomy = google_data_catalog_taxonomy.my_taxonomy.id
181166 display_name = "Low security"
182167 description = "A policy tag normally associated with low security items"
183168}
184169
185170resource "google_data_catalog_taxonomy" "my_taxonomy" {
186- provider = google-beta
187- region = "us"
188171 display_name = "tf_test_taxonomy_display_name%{random_suffix}"
189172 description = "A collection of policy tags"
190173 activated_policy_types = ["FINE_GRAINED_ACCESS_CONTROL"]
191174}
192175
193176resource "google_data_catalog_policy_tag_iam_binding" "foo" {
194- provider = google-beta
195177 policy_tag = google_data_catalog_policy_tag.basic_policy_tag.name
196178 role = "%{role}"
197179 members = ["user:[email protected] "] @@ -202,22 +184,18 @@ resource "google_data_catalog_policy_tag_iam_binding" "foo" {
202184func testAccDataCatalogPolicyTagIamBinding_updateGenerated (context map [string ]interface {}) string {
203185 return Nprintf (`
204186resource "google_data_catalog_policy_tag" "basic_policy_tag" {
205- provider = google-beta
206187 taxonomy = google_data_catalog_taxonomy.my_taxonomy.id
207188 display_name = "Low security"
208189 description = "A policy tag normally associated with low security items"
209190}
210191
211192resource "google_data_catalog_taxonomy" "my_taxonomy" {
212- provider = google-beta
213- region = "us"
214193 display_name = "tf_test_taxonomy_display_name%{random_suffix}"
215194 description = "A collection of policy tags"
216195 activated_policy_types = ["FINE_GRAINED_ACCESS_CONTROL"]
217196}
218197
219198resource "google_data_catalog_policy_tag_iam_binding" "foo" {
220- provider = google-beta
221199 policy_tag = google_data_catalog_policy_tag.basic_policy_tag.name
222200 role = "%{role}"
223201
0 commit comments