@@ -101,3 +101,53 @@ resource "google_identity_platform_config" "default" {
101
101
}
102
102
` , context )
103
103
}
104
+
105
+ func TestAccIdentityPlatformConfig_identityPlatformConfigMinimalExample (t * testing.T ) {
106
+ acctest .SkipIfVcr (t )
107
+ t .Parallel ()
108
+
109
+ context := map [string ]interface {}{
110
+ "org_id" : envvar .GetTestOrgFromEnv (t ),
111
+ "billing_acct" : envvar .GetTestBillingAccountFromEnv (t ),
112
+ "random_suffix" : acctest .RandString (t , 10 ),
113
+ }
114
+
115
+ acctest .VcrTest (t , resource.TestCase {
116
+ PreCheck : func () { acctest .AccTestPreCheck (t ) },
117
+ ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories (t ),
118
+ Steps : []resource.TestStep {
119
+ {
120
+ Config : testAccIdentityPlatformConfig_identityPlatformConfigMinimalExample (context ),
121
+ },
122
+ {
123
+ ResourceName : "google_identity_platform_config.default" ,
124
+ ImportState : true ,
125
+ ImportStateVerify : true ,
126
+ },
127
+ },
128
+ })
129
+ }
130
+
131
+ func testAccIdentityPlatformConfig_identityPlatformConfigMinimalExample (context map [string ]interface {}) string {
132
+ return acctest .Nprintf (`
133
+ resource "google_project" "default" {
134
+ project_id = "tf-test-my-project-1%{random_suffix}"
135
+ name = "tf-test-my-project-1%{random_suffix}"
136
+ org_id = "%{org_id}"
137
+ billing_account = "%{billing_acct}"
138
+ labels = {
139
+ firebase = "enabled"
140
+ }
141
+ }
142
+
143
+ resource "google_project_service" "identitytoolkit" {
144
+ project = google_project.default.project_id
145
+ service = "identitytoolkit.googleapis.com"
146
+ }
147
+
148
+
149
+ resource "google_identity_platform_config" "default" {
150
+ project = google_project.default.project_id
151
+ }
152
+ ` , context )
153
+ }
0 commit comments