rconjoe/provana-mono

Rules testing

Closed this issue · 4 comments

provana-tools might end up being useful to largely replace using unit tests as integration tests. If there are functions in that cli to simulate every single kind of input coming from the user, which wouldn't even be all that much to code in the long run, this would be a 1:1 local implementation of the platform that lets us test almost everything without deploying.

While we go along with testing, one of the things that can be chosen in the cli should be which user to log in as. Since rules are in the repo itself under firestore.rules, storage.rules, etc... we can check the allow/deny requests locally with the rest of the code we're writing and not have to be testing rules on a live database.

great :D

This is happening in provana-tools, use this issue to reference changes mandated by rules functionality that touches actual site/api code.

@mrkimproductions can you link xwiki here when done with rule details

dupe