Skip to content

Commit bdaee54

Browse files
committed
Add ga tests
1 parent 5fa8d9c commit bdaee54

File tree

7 files changed

+8
-44
lines changed

7 files changed

+8
-44
lines changed

mmv1/products/firebaseapphosting/Backend.yaml

-4
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,21 @@ import_format:
2626
- "projects/{{project}}/locations/{{location}}/backends/{{backend_id}}"
2727
- "{{project}}/{{location}}/{{backend_id}}"
2828
- "{{location}}/{{backend_id}}"
29-
min_version: beta
3029
examples:
3130
- name: firebase_app_hosting_backend_minimal
3231
primary_resource_id: example
33-
min_version: beta
3432
vars:
3533
backend_id: "mini"
3634
test_env_vars:
3735
project_id: "PROJECT_NAME"
3836
- name: firebase_app_hosting_backend_full
3937
primary_resource_id: example
40-
min_version: beta
4138
vars:
4239
backend_id: "full"
4340
test_env_vars:
4441
project_id: "PROJECT_NAME"
4542
- name: firebase_app_hosting_backend_github
4643
primary_resource_id: example
47-
min_version: beta
4844
vars:
4945
backend_id: "my-backend-gh"
5046
test_env_vars:

mmv1/products/firebaseapphosting/product.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,5 @@ scopes:
1919
versions:
2020
- base_url: https://firebaseapphosting.googleapis.com/v1beta/
2121
name: beta
22-
# GA not available yet
23-
# - base_url: https://firebaseapphosting.googleapis.com/v1main/
24-
# name: ga
22+
- base_url: https://firebaseapphosting.googleapis.com/v1main/
23+
name: ga

mmv1/templates/terraform/examples/firebase_app_hosting_backend_full.tf.tmpl

-12
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
### Include these blocks only once per project if you are starting from scratch ###
22
resource "google_service_account" "service_account" {
3-
provider = google-beta
4-
53
project = "{{index $.TestEnvVars "project_id"}}"
64

75
# Must be firebase-app-hosting-compute
@@ -13,8 +11,6 @@ resource "google_service_account" "service_account" {
1311
}
1412

1513
resource "google_project_iam_member" "app_hosting_sa_developerconnect" {
16-
provider = google-beta
17-
1814
project = "{{index $.TestEnvVars "project_id"}}"
1915

2016
# For reading connected Github repos
@@ -23,8 +19,6 @@ resource "google_project_iam_member" "app_hosting_sa_developerconnect" {
2319
}
2420

2521
resource "google_project_iam_member" "app_hosting_sa_adminsdk" {
26-
provider = google-beta
27-
2822
project = "{{index $.TestEnvVars "project_id"}}"
2923

3024
# For Firebase Admin SDK
@@ -33,8 +27,6 @@ resource "google_project_iam_member" "app_hosting_sa_adminsdk" {
3327
}
3428

3529
resource "google_project_iam_member" "app_hosting_sa_runner" {
36-
provider = google-beta
37-
3830
project = "{{index $.TestEnvVars "project_id"}}"
3931

4032
# For App Hosting
@@ -43,8 +35,6 @@ resource "google_project_iam_member" "app_hosting_sa_runner" {
4335
}
4436

4537
resource "google_project_service" "fah" {
46-
provider = google-beta
47-
4838
project = "{{index $.TestEnvVars "project_id"}}"
4939
service = "firebaseapphosting.googleapis.com"
5040

@@ -53,8 +43,6 @@ resource "google_project_service" "fah" {
5343
###
5444

5545
resource "google_firebase_app_hosting_backend" "example" {
56-
provider = google-beta
57-
5846
project = "{{index $.TestEnvVars "project_id"}}"
5947

6048
# Choose the region closest to your users

mmv1/templates/terraform/examples/firebase_app_hosting_backend_github.tf.tmpl

-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
resource "google_developer_connect_connection" "my-connection" {
2-
provider = google-beta
3-
42
project = "{{index $.TestEnvVars "project_id"}}"
53
location = "us-central1"
64
connection_id = "tf-test-connection-new"
@@ -11,8 +9,6 @@ resource "google_developer_connect_connection" "my-connection" {
119
}
1210

1311
resource "google_developer_connect_git_repository_link" "my-repository" {
14-
provider = google-beta
15-
1612
project = "{{index $.TestEnvVars "project_id"}}"
1713
location = "us-central1"
1814

@@ -36,16 +32,12 @@ resource "google_project_service_identity" "devconnect-p4sa" {
3632
}
3733

3834
resource "google_project_iam_member" "devconnect-secret" {
39-
provider = google-beta
40-
4135
project = "{{index $.TestEnvVars "project_id"}}"
4236
role = "roles/secretmanager.admin"
4337
member = google_project_service_identity.devconnect-p4sa.member
4438
}
4539

4640
resource "google_firebase_app_hosting_backend" "example" {
47-
provider = google-beta
48-
4941
project = "{{index $.TestEnvVars "project_id"}}"
5042

5143
# Choose the region closest to your users

mmv1/templates/terraform/examples/firebase_app_hosting_backend_minimal.tf.tmpl

-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
### Include these blocks only once per project if you are starting from scratch ###
22
resource "google_service_account" "service_account" {
3-
provider = google-beta
4-
53
project = "{{index $.TestEnvVars "project_id"}}"
64

75
# Must be firebase-app-hosting-compute
@@ -13,8 +11,6 @@ resource "google_service_account" "service_account" {
1311
}
1412

1513
resource "google_project_iam_member" "app_hosting_sa_runner" {
16-
provider = google-beta
17-
1814
project = "{{index $.TestEnvVars "project_id"}}"
1915

2016
# For App Hosting
@@ -23,8 +19,6 @@ resource "google_project_iam_member" "app_hosting_sa_runner" {
2319
}
2420

2521
resource "google_project_service" "fah" {
26-
provider = google-beta
27-
2822
project = "{{index $.TestEnvVars "project_id"}}"
2923
service = "firebaseapphosting.googleapis.com"
3024

@@ -33,8 +27,6 @@ resource "google_project_service" "fah" {
3327
###
3428

3529
resource "google_firebase_app_hosting_backend" "example" {
36-
provider = google-beta
37-
3830
project = "{{index $.TestEnvVars "project_id"}}"
3931
# Choose the region closest to your users
4032

mmv1/third_party/terraform/.teamcity/components/inputs/services_ga.kt

+5
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,11 @@ var ServicesListGa = mapOf(
401401
"displayName" to "Firebaseappcheck",
402402
"path" to "./google/services/firebaseappcheck"
403403
),
404+
"firebaseapphosting" to mapOf(
405+
"name" to "firebaseapphosting",
406+
"displayName" to "Firebase App Hosting",
407+
"path" to "./google/services/firebaseapphosting"
408+
),
404409
"firebasedatabase" to mapOf(
405410
"name" to "firebasedatabase",
406411
"displayName" to "Firebasedatabase",

mmv1/third_party/terraform/services/firebaseapphosting/resource_firebase_app_hosting_backend_test.go

+1-9
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func TestAccFirebaseAppHostingBackend_update(t *testing.T) {
2222

2323
acctest.VcrTest(t, resource.TestCase{
2424
PreCheck: func() { acctest.AccTestPreCheck(t) },
25-
ProtoV5ProviderFactories: acctest.ProtoV5ProviderBetaFactories(t),
25+
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
2626
CheckDestroy: testAccCheckFirebaseAppHostingBackendDestroyProducer(t),
2727
Steps: []resource.TestStep{
2828
{
@@ -50,8 +50,6 @@ func TestAccFirebaseAppHostingBackend_update(t *testing.T) {
5050
func testAccFirebaseAppHostingBackend_firebaseAppHostingBackendBefore(context map[string]interface{}) string {
5151
return acctest.Nprintf(`
5252
resource "google_service_account" "service_account" {
53-
provider = google-beta
54-
5553
project = "%{project_id}"
5654
5755
# Must be firebase-app-hosting-compute
@@ -63,8 +61,6 @@ resource "google_service_account" "service_account" {
6361
}
6462
6563
resource "google_firebase_app_hosting_backend" "example" {
66-
provider = google-beta
67-
6864
project = "%{project_id}"
6965
# Choose the region closest to your users
7066
location = "us-central1"
@@ -89,8 +85,6 @@ resource "google_firebase_app_hosting_backend" "example" {
8985
func testAccFirebaseAppHostingBackend_firebaseAppHostingBackendAfter(context map[string]interface{}) string {
9086
return acctest.Nprintf(`
9187
resource "google_service_account" "service_account" {
92-
provider = google-beta
93-
9488
project = "%{project_id}"
9589
9690
# Must be firebase-app-hosting-compute
@@ -102,8 +96,6 @@ resource "google_service_account" "service_account" {
10296
}
10397
10498
resource "google_firebase_app_hosting_backend" "example" {
105-
provider = google-beta
106-
10799
project = "%{project_id}"
108100
# Choose the region closest to your users
109101
location = "us-central1"

0 commit comments

Comments
 (0)