Skip to content

Commit f66c90a

Browse files
Enable tenant management tests for releases. (#740)
Also document how to enable these tests in the CONTRIBUTING.md file.
1 parent 330aa3a commit f66c90a

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

CONTRIBUTING.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,21 @@ integration tests can pass, launch the tests as follows:
183183
$ npm run test:integration -- --updateRules
184184
```
185185

186+
The integration test suite skips the multi-tenancy Auth tests by default.
187+
If you want to run these tests, an
188+
[Identity Platform](https://cloud.google.com/identity-platform/) project with multi-tenancy
189+
[enabled](https://cloud.google.com/identity-platform/docs/multi-tenancy-quickstart#enabling_multi-tenancy)
190+
will be required.
191+
An existing Firebase project can be upgraded to an Identity Platform project without
192+
losing any functionality via the
193+
[Identity Platform Marketplace Page](https://console.cloud.google.com/customer-identity).
194+
Note that charges may be incurred for active users beyond the Identity Platform free tier.
195+
The integration tests can be launched with these tests enabled as follows:
196+
197+
```bash
198+
$ npm run test:integration -- --testMultiTenancy
199+
```
200+
186201
### Repo Organization
187202

188203
Here are some highlights of the directory structure and notable source files

createReleaseTarball.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ fi
137137
echo
138138

139139
echo "[INFO] Running integration tests..."
140-
npm run test:integration -- --updateRules
140+
npm run test:integration -- --updateRules --testMultiTenancy
141141
if [[ $? -ne 0 ]]; then
142142
echo "Error: Integration tests failed."
143143
exit 1

0 commit comments

Comments
 (0)