opened
kthaas
username_0
…ator

<!--

Thank you for contributing to the Firebase community! Please fill out the form below.

Run the linter and test suite
==============================
Run `npm test` to make sure your changes compile properly and the tests all pass on your local machine. We've hooked up this repo with continuous integration to double check those things for you. 

-->


### Description

Adding support for emulated scheduled pubsub functions to be triggered manually. Previously, all scheduled pubsub functions in the emulator would be on the same topic (named "topic") as their resource is `projects/{PROJECT_NAME}/topic`. Updated to add the `schedule` to the function trigger definition and to change the topic name if the schedule is defined to match as closely as possible to what it looks like in production (namely, `firebase-schedule-{FUNCTION_NAME}-{DEPLOYMENT_LOCATION}`, i.e. `firebase-schedule-helloworld-uscentral-1`). Functions can now be invoked by publishing to that topic, exposing them individually. Originally brought up in issue #1748, but also was required for our own end to end tests.
<!-- Are you fixing a bug? Implementing a new feature? Make sure we have the context around your change. Link to other relevant issues or pull requests. -->
	 
### Scenarios Tested

<!-- Write a list of all the user journeys and edge cases you've tested. Instructions for manual testing can be found at https://github.com/firebase/firebase-tools/blob/master/.github/CONTRIBUTING.md#development-setup -->

### Sample Commands

<!-- Proposing a change to commands or flags? Provide examples of how they will be used. -->
[Feature] Added support for scheduled pubsub functions in emulator
issue
created
samtstern
username_1
@username_0 thanks!  This is a really nice and simple addition, I appreciate that you added tests as well.

A few changes needed:
1. Sign the CLA
2. Add an entry to `CHANGELOG.md` explaining this
comment
created
kthaas
username_0
@googlebot I fixed it.
comment
created
kthaas
username_0
Thanks @username_1! Author was configured improperly, so fixed up the commit with my github username and added changelog.
comment
created
samtstern
username_1
@username_0 perfect, merging!  Thanks so much for this PR.
comment