Uh oh!
There was an error while loading. Please reload this page.
Rules integration tests - #633
Conversation
ryanpbrewster
left a comment
There was a problem hiding this comment.
tests look okay, they're a bit hard to follow
recommend introducing either:
- helper methods that keep track of which resources need to be cleaned up
- make the cleanup remove all rulesets + releases (using relevant
ListXyzapis)
Uh oh!
There was an error while loading. Please reload this page.
hiranya911
commented
Aug 26, 2019
Added some helper functions to improve the readability. PTAL. |
ryanpbrewster
left a comment
There was a problem hiding this comment.
only nits, I still feel like the test cleanup is quite difficult to reason about but it's not worth blocking on
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
rachelmyers
left a comment
There was a problem hiding this comment.
I suggested a rename for tempRulesets and have a question about the last test, but LGTM!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
hiranya911
commented
Aug 26, 2019
Renamed |
* Implementing the Firebase Security Rules API (#604) * Implementing the Firebase Security Rules API * More argument validation and assertions * Cleaning up the rules impl * Internal API renamed * Fixing a typo in a comment * Implemented createRulesFileFromSource() and createRuleset() APIs (#607) * Implementing the Firebase Security Rules API * More argument validation and assertions * Adding the rest of the CRUD operations for rulesets * Cleaning up the rules impl * Cleaned up tests * Adding some missing comments * Removing support for multiple rules files in create() * Implemented the deleteRuleset() API (#609) * Added deleteRuleset API * Merged with source * Implemented the API for releasing rulesets (#610) * Implemented the API for releasing rulesets * Removed createRelease logic * Updated comment * Added the getStorageRuleset() API (#613) * Implemented the API for releasing rulesets * Removed createRelease logic * Added getStorageRules() API * Removed some redundant tests * Implementing the remaining releaseRuleset APIs (#616) * Implemented the listRulesetMetadata() API (#622) * Adding the rules API to the public API surface (#625) * Added rules API to the public admin namespace * Updated docs * Addressing comments regarding the d.ts file * Updated App typings * Rules integration tests (#633) * Rules integration tests * Refactored by adding some helper methods * Cleaned up some conditionals * Added verification for deleteRuleset test * Renamed tempRulesets * Handling ruleset limit exceeded error (#636) * Fixing alignment of an annotation * Updated comments
Integration tests that run against the production service: