Allow starting Pub/Sub emulator for local development and integration testing
See original GitHub issueSpring Cloud GCP’s support for Datastore starts the Datastore emulator when spring.cloud.gcp.datastore.emulator.enabled
is set to true
, which is very convenient for local development and integration testing.
Could Spring Cloud GCP’s support for Pub/Sub add a similar configuration property that starts up a Pub/Sub emulator instead of requiring an emulator to be started via some other way when setting spring.cloud.gcp.pubsub.emulator-host
?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Testing apps locally with the emulator | Cloud Pub/Sub ...
To develop and test your application locally, you can use the Pub/Sub emulator, which provides local emulation of the production Pub/Sub service.
Read more >Integration testing Pub/Sub interactions in your application | Blog
Google already provides us with an emulator that allows us to emulate a Pub/Sub server locally. Our Dockerfile is as follows:.
Read more >Integration testing Pub/Sub interactions in your application
This blog explains how we created integration tests that allow you ... with an emulator that allows us to emulate a Pub/Sub server...
Read more >How to use Google Pub/Sub emulator locally to test ... - Medium
When you have installed the Google Pub/Sub emulator you can start it locally very easily with a single gcloud CLI command.
Read more >How to prepare Pub/Sub emulator for tests? - Stack Overflow
You are launching pubsub emulator with project my-project in your 2nd command. Once this is running, don't kill it, leave it running.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I believe it’s possible in principle. We started a refactoring of our emulator support across the board here, but it has been put on hold for now.
In the meantime, we’d be open to a small change targeted at the Pub/Sub emulator support for the auto-start, if someone is willing to make a contribution.
Also, have you considered using test-containers for Pub/Sub emulator? See: https://www.testcontainers.org/modules/gcloud/
@bsideup I’m in that team. 😃 But we’re the JVM application framework team, not the CI team, so this is not my area of expertise. But I’ll poke our CI team about Rootless Docker, GitLab CI and Testcontainers.