Unit testing security rules with the Firebase Emulator Suite
Unit testing is like flossing; we all know we should be doing it, but not all of us actually are. And there’s no better subject to unit test than security rules, the main line of defense between your database and all of those untrustworthy clients. In this video, we'll teach you how to efficiently unit test your security rules using some helpful libraries and the latest Firebase emulator suite.
Chapters:
0:00 Introduction
1:50 Prerequisites and introducing the sample app
3:15 Introducing unit tests
5:11 Setting up the Firebase project
7:31 Creating our first unit test
8:46 Writing a unit test against Cloud Firestore
11:25 The principle of least privilege
14:04 Testing user-level security rules
18:03 Test-driven development and security rules
19:20 Refactoring
20:27 Security rules for queries
23:56 Reading a single document
24:39 The Emulator UI and adminApp
28:45 Database cleanup
30:05 Conclusion
Resources:
Improvements to Firestore Security Rules blog post → https://goo.gle/2YpxWeR
How does async/await work? https://goo.gle/37SjQWC
Unit Test Security Rules codelab → https://goo.gle/37XYeIb
Watch More:
Firebase Live 2020 playlist → https://goo.gle/FirebaseLive
Subscribe to the Firebase channel → https://goo.gle/Firebase
Speakers:
Todd Kerpelman, Rachel Myers
#FirebaseLive event: Firebase Live 2020; re_ty: Publish; product: Firebase - Emulator Suite; fullname: Rachel Myers, Todd Kerpelman;
Видео Unit testing security rules with the Firebase Emulator Suite канала Firebase
Chapters:
0:00 Introduction
1:50 Prerequisites and introducing the sample app
3:15 Introducing unit tests
5:11 Setting up the Firebase project
7:31 Creating our first unit test
8:46 Writing a unit test against Cloud Firestore
11:25 The principle of least privilege
14:04 Testing user-level security rules
18:03 Test-driven development and security rules
19:20 Refactoring
20:27 Security rules for queries
23:56 Reading a single document
24:39 The Emulator UI and adminApp
28:45 Database cleanup
30:05 Conclusion
Resources:
Improvements to Firestore Security Rules blog post → https://goo.gle/2YpxWeR
How does async/await work? https://goo.gle/37SjQWC
Unit Test Security Rules codelab → https://goo.gle/37XYeIb
Watch More:
Firebase Live 2020 playlist → https://goo.gle/FirebaseLive
Subscribe to the Firebase channel → https://goo.gle/Firebase
Speakers:
Todd Kerpelman, Rachel Myers
#FirebaseLive event: Firebase Live 2020; re_ty: Publish; product: Firebase - Emulator Suite; fullname: Rachel Myers, Todd Kerpelman;
Видео Unit testing security rules with the Firebase Emulator Suite канала Firebase
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Intermediate topics in Firebase Security Rules - FirecastsWhat is a NoSQL Database? How is Cloud Firestore structured? | Get to know Cloud Firestore #1The Local Firebase Emulator UI in 15 minutesSecurity Rules! 🔑 | Get to know Cloud Firestore #6Cloud Firestore Data Modeling (Google I/O'19)How do queries work in Cloud Firestore? | Get to know Cloud Firestore #2The Firebase Realtime Database and Flutter - FirecastsFirestore Rules Testing with the Emulator - New FeatureWell-Architected: The Backstage TourTo show ads or not to show ads - Optimize Your App RevenueContainerd with Phil Estes: DevOps and Docker Live Show (Ep 140)Meet an Extension: Distributed counterUsing Firebase and AdMob together: The framework - Optimize Your App RevenueGetting started with Firebase for the web – Firebase FundamentalsPersonalizing your app in real-time: Powered by Firebase and MLLevel up your apps with Firebase Extensions and ML | DemoHow often should you show ads in your app? - Optimize Your App RevenueMeet an Extension: Export collections to BigQuery extensionGetting started with analytics on Android #2: User properties and user-scoped custom dimensions