Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,6 @@ src/firebase_test_framework.h
src/ios/.clang-format
src/ios/ios_app_framework.mm
src/ios/ios_firebase_test_framework.mm

# Node dependencies
node_modules/
27 changes: 23 additions & 4 deletions app_check/integration_test/functions/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
Cloud functions used by the integration test.
Instructions to deploy:
1. From the innermost functions directory run `npm install`
2. From this directory, run `firebase deploy --only functions`
# Cloud Functions for App Check Integration Tests

This directory contains the Cloud Functions backend used by the App Check integration tests.

## Running Locally via Emulator

To run these functions locally using the Firebase emulator:

1. Navigate to the nested `functions/` directory and install dependencies:
```bash
cd functions && npm install && cd ..
```

2. Start the Firebase emulator:
```bash
npx firebase emulators:start --only functions --project functions-integration-test
```

3. Run the integration test client app, specifying the emulator host:
- Command-line flag: `--functions_emulator_host=localhost:5005`
- Environment variable: `FUNCTIONS_EMULATOR_HOST=localhost:5005`

*(Note: On Android, `localhost` or `127.0.0.1` will be automatically mapped to `10.0.2.2` to route requests to the host machine.)*
6 changes: 6 additions & 0 deletions app_check/integration_test/functions/firebase.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"functions": {
"source": "functions"
},
"emulators": {
"functions": {
"port": 5005
}
}
}
Loading
Loading