@@ -32,10 +32,11 @@ func TestAccIapWebTypeAppEngineIamBindingGenerated(t *testing.T) {
32
32
t .Parallel ()
33
33
34
34
context := map [string ]interface {}{
35
- "random_suffix" : acctest .RandString (t , 10 ),
36
- "role" : "roles/iap.httpsResourceAccessor" ,
37
- "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
38
- "org_id" : envvar .GetTestOrgFromEnv (t ),
35
+ "random_suffix" : acctest .RandString (t , 10 ),
36
+ "role" : "roles/iap.httpsResourceAccessor" ,
37
+ "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
38
+ "org_id" : envvar .GetTestOrgFromEnv (t ),
39
+ "billing_account" : envvar .GetTestBillingAccountFromEnv (t ),
39
40
40
41
"condition_title" : "expires_after_2019_12_31" ,
41
42
"condition_expr" : `request.time < timestamp(\"2020-01-01T00:00:00Z\")` ,
@@ -79,10 +80,11 @@ func TestAccIapWebTypeAppEngineIamMemberGenerated(t *testing.T) {
79
80
t .Parallel ()
80
81
81
82
context := map [string ]interface {}{
82
- "random_suffix" : acctest .RandString (t , 10 ),
83
- "role" : "roles/iap.httpsResourceAccessor" ,
84
- "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
85
- "org_id" : envvar .GetTestOrgFromEnv (t ),
83
+ "random_suffix" : acctest .RandString (t , 10 ),
84
+ "role" : "roles/iap.httpsResourceAccessor" ,
85
+ "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
86
+ "org_id" : envvar .GetTestOrgFromEnv (t ),
87
+ "billing_account" : envvar .GetTestBillingAccountFromEnv (t ),
86
88
87
89
"condition_title" : "expires_after_2019_12_31" ,
88
90
"condition_expr" : `request.time < timestamp(\"2020-01-01T00:00:00Z\")` ,
@@ -117,10 +119,11 @@ func TestAccIapWebTypeAppEngineIamPolicyGenerated(t *testing.T) {
117
119
t .Parallel ()
118
120
119
121
context := map [string ]interface {}{
120
- "random_suffix" : acctest .RandString (t , 10 ),
121
- "role" : "roles/iap.httpsResourceAccessor" ,
122
- "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
123
- "org_id" : envvar .GetTestOrgFromEnv (t ),
122
+ "random_suffix" : acctest .RandString (t , 10 ),
123
+ "role" : "roles/iap.httpsResourceAccessor" ,
124
+ "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
125
+ "org_id" : envvar .GetTestOrgFromEnv (t ),
126
+ "billing_account" : envvar .GetTestBillingAccountFromEnv (t ),
124
127
125
128
"condition_title" : "expires_after_2019_12_31" ,
126
129
"condition_expr" : `request.time < timestamp(\"2020-01-01T00:00:00Z\")` ,
@@ -164,10 +167,11 @@ func TestAccIapWebTypeAppEngineIamBindingGenerated_withCondition(t *testing.T) {
164
167
t .Parallel ()
165
168
166
169
context := map [string ]interface {}{
167
- "random_suffix" : acctest .RandString (t , 10 ),
168
- "role" : "roles/iap.httpsResourceAccessor" ,
169
- "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
170
- "org_id" : envvar .GetTestOrgFromEnv (t ),
170
+ "random_suffix" : acctest .RandString (t , 10 ),
171
+ "role" : "roles/iap.httpsResourceAccessor" ,
172
+ "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
173
+ "org_id" : envvar .GetTestOrgFromEnv (t ),
174
+ "billing_account" : envvar .GetTestBillingAccountFromEnv (t ),
171
175
172
176
"condition_title" : "expires_after_2019_12_31" ,
173
177
"condition_expr" : `request.time < timestamp(\"2020-01-01T00:00:00Z\")` ,
@@ -203,10 +207,11 @@ func TestAccIapWebTypeAppEngineIamBindingGenerated_withAndWithoutCondition(t *te
203
207
t .Parallel ()
204
208
205
209
context := map [string ]interface {}{
206
- "random_suffix" : acctest .RandString (t , 10 ),
207
- "role" : "roles/iap.httpsResourceAccessor" ,
208
- "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
209
- "org_id" : envvar .GetTestOrgFromEnv (t ),
210
+ "random_suffix" : acctest .RandString (t , 10 ),
211
+ "role" : "roles/iap.httpsResourceAccessor" ,
212
+ "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
213
+ "org_id" : envvar .GetTestOrgFromEnv (t ),
214
+ "billing_account" : envvar .GetTestBillingAccountFromEnv (t ),
210
215
211
216
"condition_title" : "expires_after_2019_12_31" ,
212
217
"condition_expr" : `request.time < timestamp(\"2020-01-01T00:00:00Z\")` ,
@@ -252,10 +257,11 @@ func TestAccIapWebTypeAppEngineIamMemberGenerated_withCondition(t *testing.T) {
252
257
t .Parallel ()
253
258
254
259
context := map [string ]interface {}{
255
- "random_suffix" : acctest .RandString (t , 10 ),
256
- "role" : "roles/iap.httpsResourceAccessor" ,
257
- "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
258
- "org_id" : envvar .GetTestOrgFromEnv (t ),
260
+ "random_suffix" : acctest .RandString (t , 10 ),
261
+ "role" : "roles/iap.httpsResourceAccessor" ,
262
+ "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
263
+ "org_id" : envvar .GetTestOrgFromEnv (t ),
264
+ "billing_account" : envvar .GetTestBillingAccountFromEnv (t ),
259
265
260
266
"condition_title" : "expires_after_2019_12_31" ,
261
267
"condition_expr" : `request.time < timestamp(\"2020-01-01T00:00:00Z\")` ,
@@ -291,10 +297,11 @@ func TestAccIapWebTypeAppEngineIamMemberGenerated_withAndWithoutCondition(t *tes
291
297
t .Parallel ()
292
298
293
299
context := map [string ]interface {}{
294
- "random_suffix" : acctest .RandString (t , 10 ),
295
- "role" : "roles/iap.httpsResourceAccessor" ,
296
- "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
297
- "org_id" : envvar .GetTestOrgFromEnv (t ),
300
+ "random_suffix" : acctest .RandString (t , 10 ),
301
+ "role" : "roles/iap.httpsResourceAccessor" ,
302
+ "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
303
+ "org_id" : envvar .GetTestOrgFromEnv (t ),
304
+ "billing_account" : envvar .GetTestBillingAccountFromEnv (t ),
298
305
299
306
"condition_title" : "expires_after_2019_12_31" ,
300
307
"condition_expr" : `request.time < timestamp(\"2020-01-01T00:00:00Z\")` ,
@@ -340,10 +347,11 @@ func TestAccIapWebTypeAppEngineIamPolicyGenerated_withCondition(t *testing.T) {
340
347
t .Parallel ()
341
348
342
349
context := map [string ]interface {}{
343
- "random_suffix" : acctest .RandString (t , 10 ),
344
- "role" : "roles/iap.httpsResourceAccessor" ,
345
- "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
346
- "org_id" : envvar .GetTestOrgFromEnv (t ),
350
+ "random_suffix" : acctest .RandString (t , 10 ),
351
+ "role" : "roles/iap.httpsResourceAccessor" ,
352
+ "project_id" : fmt .Sprintf ("tf-test%s" , acctest .RandString (t , 10 )),
353
+ "org_id" : envvar .GetTestOrgFromEnv (t ),
354
+ "billing_account" : envvar .GetTestBillingAccountFromEnv (t ),
347
355
348
356
"condition_title" : "expires_after_2019_12_31" ,
349
357
"condition_expr" : `request.time < timestamp(\"2020-01-01T00:00:00Z\")` ,
@@ -389,6 +397,7 @@ resource "google_project" "project" {
389
397
name = "%{project_id}"
390
398
project_id = "%{project_id}"
391
399
org_id = "%{org_id}"
400
+ billing_account = "%{billing_account}"
392
401
}
393
402
394
403
resource "time_sleep" "wait_60_seconds" {
@@ -426,6 +435,7 @@ resource "google_project" "project" {
426
435
name = "%{project_id}"
427
436
project_id = "%{project_id}"
428
437
org_id = "%{org_id}"
438
+ billing_account = "%{billing_account}"
429
439
}
430
440
431
441
resource "time_sleep" "wait_60_seconds" {
@@ -477,6 +487,7 @@ resource "google_project" "project" {
477
487
name = "%{project_id}"
478
488
project_id = "%{project_id}"
479
489
org_id = "%{org_id}"
490
+ billing_account = "%{billing_account}"
480
491
}
481
492
482
493
resource "time_sleep" "wait_60_seconds" {
@@ -516,6 +527,7 @@ resource "google_project" "project" {
516
527
name = "%{project_id}"
517
528
project_id = "%{project_id}"
518
529
org_id = "%{org_id}"
530
+ billing_account = "%{billing_account}"
519
531
}
520
532
521
533
resource "time_sleep" "wait_60_seconds" {
@@ -553,6 +565,7 @@ resource "google_project" "project" {
553
565
name = "%{project_id}"
554
566
project_id = "%{project_id}"
555
567
org_id = "%{org_id}"
568
+ billing_account = "%{billing_account}"
556
569
}
557
570
558
571
resource "time_sleep" "wait_60_seconds" {
@@ -590,6 +603,7 @@ resource "google_project" "project" {
590
603
name = "%{project_id}"
591
604
project_id = "%{project_id}"
592
605
org_id = "%{org_id}"
606
+ billing_account = "%{billing_account}"
593
607
}
594
608
595
609
resource "time_sleep" "wait_60_seconds" {
@@ -632,6 +646,7 @@ resource "google_project" "project" {
632
646
name = "%{project_id}"
633
647
project_id = "%{project_id}"
634
648
org_id = "%{org_id}"
649
+ billing_account = "%{billing_account}"
635
650
}
636
651
637
652
resource "time_sleep" "wait_60_seconds" {
@@ -694,6 +709,7 @@ resource "google_project" "project" {
694
709
name = "%{project_id}"
695
710
project_id = "%{project_id}"
696
711
org_id = "%{org_id}"
712
+ billing_account = "%{billing_account}"
697
713
}
698
714
699
715
resource "time_sleep" "wait_60_seconds" {
@@ -736,6 +752,7 @@ resource "google_project" "project" {
736
752
name = "%{project_id}"
737
753
project_id = "%{project_id}"
738
754
org_id = "%{org_id}"
755
+ billing_account = "%{billing_account}"
739
756
}
740
757
741
758
resource "time_sleep" "wait_60_seconds" {
@@ -798,6 +815,7 @@ resource "google_project" "project" {
798
815
name = "%{project_id}"
799
816
project_id = "%{project_id}"
800
817
org_id = "%{org_id}"
818
+ billing_account = "%{billing_account}"
801
819
}
802
820
803
821
resource "time_sleep" "wait_60_seconds" {
0 commit comments