firebase / firebase/firebase-admin-python

[FR] Python Security Rules Unit Testing

Open
#914 1 comment 0 reactions 0 assignees View on GitHub
needs-triage type: feature request
Dominant language
Python
Stars
1.2k
Forks
359
Avg merge
5d 6m
Merged PRs (30d)
2

Description

**Is your feature request related to a problem? Please describe.**
I am using a Python Firebase Functions Backend for My Application but I would like to Unit Test My Firestore Security Rules. There doesn't seem to be a supported library for this in Python.

**Describe the solution you'd like**
Provide a similar library like is provided for NodeJS: https://www.npmjs.com/package/@firebase/rules-unit-testing/v/3.0.2-canary.6d31930b3

**Describe alternatives you've considered**
It may be possible to setup the testing manually without the supported helper methods. I may have to separate my security rules unit testing to another repo and use NodeJS.

Contributor guide

Open the contributing guide

Research direction

The request points to the NodeJS @firebase/rules-unit-testing package as the reference; begin by reviewing that package and the firebase-admin-python repository. Define the Python equivalent's supported Firestore security-rule testing scope, with completion meaning a maintained helper library comparable to the referenced NodeJS package.

Written by the indexing model from the issue text.

Assessment

Tech stack
firebase, nodejs, python
Domain
backend, databases, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.