Evaluate Firebase Emulator Suite for Tests #456
Replies: 4 comments
-
@jeromegamez any suggestions for where to start? I'm interested in working out a PR to get this supported added. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately the current setup of the SDK doesn't make it easy to integrate the emulator without rewriting large portions of the SDK - hardcoded URLs all over the place (in this case, when I say "the SDK is mature" I mean "it's old" 😅). The only way I see without a rewrite is to somehow use a Guzzle Middleware to intercept requests. I don't know if it's actually possible though 😅 |
Beta Was this translation helpful? Give feedback.
-
for firestore it looks like all it's needed is setting the I have a project using the non-gRPC client (firestore-php) and it worked fine with a small change: nicholasio/firestore-php@77420c6 I looked at the official PHP library for firestore and it also seems to support that env variable already. The missing piece is making this lib work with firebase auth emulator. This PR for the node sdk should be a good reference point: firebase/firebase-admin-node#1044 @jeromegamez in terms of hardcoded urls Isn't the base_uri for auh the only thing we'd need to refactor? it doesn't look like it would be that hard to change that |
Beta Was this translation helpful? Give feedback.
-
https://firebase.google.com/docs/emulator-suite/connect_auth#admin_sdks I was able to use I set
|
Beta Was this translation helpful? Give feedback.
-
https://firebase.google.com/docs/emulator-suite
Source: http://firebase.googleblog.com/2020/07/product-news-and-other-highlights-from.html
Beta Was this translation helpful? Give feedback.
All reactions