You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: integration_test/README.md
+65-1Lines changed: 65 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -248,8 +248,45 @@ Add test file mapping in the case statement (lines 175-199).
248
248
249
249
## Authentication
250
250
251
+
### Local Development
251
252
Place your service account key at `sa.json` in the root directory. This file is git-ignored.
252
253
254
+
### Cloud Build
255
+
Cloud Build uses Application Default Credentials (ADC) automatically. However, the Cloud Build service account requires specific permissions for the Google Cloud services used in tests:
256
+
257
+
**Required IAM Roles for Cloud Build Service Account:**
258
+
- `roles/cloudtasks.admin`- For Cloud Tasks integration tests
259
+
- `roles/cloudscheduler.admin`- For Cloud Scheduler integration tests
260
+
- `roles/cloudtestservice.testAdmin`- For Firebase Test Lab integration tests
261
+
- `roles/firebase.admin`- For Firebase services (already included)
262
+
- `roles/pubsub.publisher`- For Pub/Sub integration tests (already included)
263
+
264
+
**Multi-Project Setup:**
265
+
Tests deploy to multiple projects (typically one for V1 tests and one for V2 tests). The Cloud Build service account needs the above permissions on **all target projects**:
0 commit comments