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
+20-7Lines changed: 20 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,19 @@
2
2
3
3
This directory contains end-to-end integration tests for the Firebase Functions SDK. These tests deploy real Cloud Functions to a Firebase project and verify their behavior by triggering events and validating responses.
4
4
5
+
## Prerequisites
6
+
7
+
- Node.js 18+ installed
8
+
- Firebase CLI installed and authenticated (`npm install -g firebase-tools`)
9
+
- Access to a Firebase test project
10
+
11
+
## Usage
12
+
13
+
```bash
14
+
npm i
15
+
npm run test
16
+
```
17
+
5
18
## Overview
6
19
7
20
The integration test suite:
@@ -28,7 +41,7 @@ Using `npm run test`. This will:
28
41
29
42
### Updating multiple versions functions for storage causes a pre-condition error
30
43
31
-
For this test suite V1 and v2 storage functions have been seperated to mitigate against function deployment errors. When deploying all functions simultaneously, the following error may occur:
44
+
For this test suite v1 and v2 storage functions have been separated to mitigate against function deployment errors. When deploying all functions simultaneously, the following error may occur:
32
45
33
46
```js
34
47
{
@@ -43,7 +56,7 @@ For this test suite V1 and v2 storage functions have been seperated to mitigate
43
56
}
44
57
```
45
58
46
-
To mitigate this, the test suite included a delay between deploying v1 and v2 storage functions.
59
+
To mitigate this, the test suite includes a delay between deploying v1 and v2 storage functions.
47
60
48
61
### Storage onObjectDeleted
49
62
@@ -71,21 +84,21 @@ Configuration Appears Set: The API response shows the triggers are configured wi
An intermittent error occurs when deploying functions related to storage, causing deployments to fail. A delay has been added to the test frameowkr to allow functions to propogate before deploying addiitonal functions and running the tets suite.
89
+
An intermittent error occurs when deploying functions related to storage, causing deployments to fail. A delay has been added to the test framework to allow functions to propagate before deploying additional functions and running the test suite.
77
90
78
91
### Service identity via Function deployment
79
92
80
-
There is an intermittent issue on deploying functions. Runnign the test suite will occasionally resulting in one the following errors:
93
+
There is an intermittent issue on deploying functions. Running the test suite will occasionally result in one of the following" errors:
81
94
82
95
```bash
83
96
functions: generating the service identity for pubsub.googleapis.com...
84
97
functions: generating the service identity for eventarc.googleapis.com...
85
98
```
86
99
87
-
Retyring the suite will resulting in a successful deployment following a time delay >5 minutes.
100
+
Retrying the suite will result in a successful deployment following a time delay >5 minutes.
88
101
89
-
### Delay on Firestore intitial propgation
102
+
### Delay on Firestore initial propogation
90
103
91
104
Following the deployment of a Firestore function, events do not always fire. A delay is required (30 seconds) to ensure the function has completed installation steps before firing an event.
0 commit comments