@@ -248,47 +248,19 @@ to ensure that exported user records contain the password hashes of the user acc
2482489 . Setup your project for Firebase Data Connect integration tests:
249249 1 . Set up Data Connect in the Firebase Console:
250250 1 . Go to the Firebase Console, and select ** Data Connect** from the ** Build** menu.
251- 2 . Click on ** Get Started** . You can skip any Gemini generation of your schema
252- or operations - you must create these manually.
251+ 2 . Click on ** Get Started** . You can skip any Gemini generation.
253252 3 . Select ** Create a new Cloud SQL instance** .
254253 4 . Set your ** Location** to ` us-west2 `
255254 5 . Set your ** Cloud SQL instance ID** to ` my-instance `
256255 6 . Set your ** Database name** to ` my-database `
257256 7 . Set your ** Service ID** to ` my-service `
258257 8 . Click ** Submit** . This operation may take up to 10 minutes to complete - you may
259258 continue setting up while this completes.
260- 2 . Set up your Data Connect schema locally:
261- 1 . Run the following commands from the command line to setup your data connect app:
262- ``` bash
263- $ mkdir fdc-integration-test
264- $ cd fdc-integration-test
265- $ firebase init dataconnect --project < PROJECT_ID>
266- ```
267- 2. The setup script should say ** " Your project already has existing services." **
268- Select the service you just created, ` us-west2/my-service` .
269- 3. When asked to use an app template, select `no`.
270- 4. The set up should complete, and should have created a file ` fdc-integration-test/dataconnect/schema/schema.gql` .
271- 5. Paste the following lines into ` schema.gql` :
272- ` ` ` gql
273- type User @table(key: [" id" ]) {
274- id: String!
275- name: String!
276- address: String!
277- }
278-
279- type Email @table {
280- id: String!
281- subject: String!
282- date: Date!
283- text: String!
284- from: User!
285- }
286- ` ` `
287- 6. Run the following commands from ` fdc-integration-test/` to deploy your schema:
288- ` ` ` bash
289- $ firebase deploy --only dataconnect
290- ` ` `
291- 7. When asked if you' d like to execute changes, select `Execute all`.
259+ 2 . Run the following command from the root of the Node Admin SDK repo:
260+ ``` bash
261+ $ firebase deploy --only dataconnect:my-service:my-connector --config ./test/integration/dataconnect/firebase.json --project < PROJECT_ID>
262+ ```
263+ 1. If you' re asked if you' d like to execute changes, select `Execute all` .
292264
293265Finally, to run the integration test suite:
294266
0 commit comments