question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow starting Pub/Sub emulator for local development and integration testing

See original GitHub issue

Spring 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:open
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
meltsufincommented, Feb 22, 2021

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/

1reaction
breuncommented, Feb 23, 2021

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found