[FR] Python Security Rules Unit Testing

Open
#914 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

Description

needs-triage type: feature request

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.

Dominant language
Python
Stars
1.2k
Forks
359
Avg merge
5d 6m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebase-admin-python

All issues in firebase/firebase-admin-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.