logstash-plugins / logstash-output-google_pubsub

Logstash output for sending events to the Google Pub/Sub service
Apache License 2.0
7 stars 10 forks source link

allow a user to configure the emulator as a google pubsub endpoint fo… #19

Open benkiefer opened 5 years ago

benkiefer commented 5 years ago

…r testing

We are building out a logstash transformation process and would love to be able to run integration tests against it locally using the google cloud pubsub emulator.

Here's a first pass at allowing the emulator configuration so we can get the conversation started. I've used the locally built gem to prove that things are working as you'd expect against a real emulator, and run a transformation process on it. I'd definitely like your feedback on how you'd like the config properties to work (and how they should be named).

I'm by no means a ruby pro, but because of how jruby loads java classes (doesn't load io package), I at least felt it was important to prove that we can create a client pointed at an emulator url in the client tests.

Thanks for taking a look!

benkiefer commented 5 years ago

Any thoughts on this? We are running off of a forked version right now, and would like to be able to clean up that fork. Thank you!