Actions53
- App Check Actions
- Auth Actions
- Cloud Messaging Actions
- Firestore Actions
- Firestore Rule Actions
- Storage Actions
- Storage Rule Actions
Firestore Rule → Test Rules
AI-generatedSummary
Run tests on Firebase Firestore security rules using provided rules source code and test cases to verify expected ALLOW or DENY outcomes.
Inputs
- Project Name or ID (required) — Select or specify the GCP project containing the Firestore instance for the security rules.
- Database Name or ID (required) — Select or specify the Firestore database within the project to test the rules against.
- Rules Source (required) — Provide the Firebase Security Rules source code (as a string) to be tested.
- Test Cases (required) — Provide a JSON array of test cases, each including an expectation (ALLOW or DENY), a request object specifying auth, path, and method, and optionally resource and functionMocks to simulate the request environment.
Output shape
A JSON object containing the results of each test case, indicating whether the security rules allowed or denied access as expected.
The operation requires the service account to have the Owner or Firebase Rules Admin role to execute. Test cases must follow the specified structure to be processed correctly.