Repository navigation
Conversation
|
👋 @adamhicks-dojo Welcome to the Microcks community! 💖 Thanks and congrats 🎉 for opening your first pull request here! Be sure to follow the pull request template or please update it accordingly. Hope you have a great time there! 🌟 ~~~~~~~~~ 🌟 📢 If you like Microcks, please ⭐ star ⭐ our repo to support it! 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact. |
Signed-off-by: Adam Hicks <[email protected]>
Signed-off-by: Adam Hicks <[email protected]>
lbroudoux
left a comment
There was a problem hiding this comment.
This looks great. I just requested a small change on how the emulatorHost is provided during a test.
|
|
||
| /** The string for Regular Expression that helps validating acceptable endpoints. */ | ||
| public static final String ENDPOINT_PATTERN_STRING = "googlepubsub://(?<projectId>[a-zA-Z0-9-_]+)/(?<topic>[a-zA-Z0-9-_\\.]+)(\\?(?<options>.+))?"; | ||
| public static final String ENDPOINT_PATTERN_STRING = "googlepubsub://((?<emulator>[^:]+(:\\d+)?)/)?(?<projectId>[a-zA-Z0-9-_]+)/(?<topic>[a-zA-Z0-9-_\\.]+)(\\?(?<options>.+))?"; |
There was a problem hiding this comment.
I would prefer managing the emulator stuff with an addition option like we did for LocalStack on AWS.
If you look here, you'll see that we have defined an overrideUrl option. Here in the case of PubSub, it could be emulatorHost.
This allows to keep consistent URIs:
googlepubsub://my-project-test/my-topicgooglepubsub://my-project-test/my-topic?emulatorHost=emulator:8585
When initializing connection and channels, you can then use the hasOption(EMULATOR_HOST_OPTION) like we did here to create the additional channel provider.
There was a problem hiding this comment.
ok, i don't have time today, but i'll get these changes done tomorrow 👍
Signed-off-by: Adam Hicks <[email protected]>
lbroudoux
left a comment
There was a problem hiding this comment.
Looks all good to me. Thanks for contributing this!
|
🎉 @adamhicks-dojo You are now a Microcks community contributor! 💖 Thanks and congrats 🚀 on merging your first pull request! We are delighted and very proud of you! 👏 📢 If you're using Microcks in your organization, please add your company name to this list. 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact. If you need to know why and how to add yourself to the list, please read the blog post "Join the Microcks Adopters list and Empower the vibrant open source Community 🙌" Kudos and please keep going, we need you 🙌 🌟 ~~~~~~~~~ 🌟 📢 If you like Microcks, please ⭐ star ⭐ our repo to support it! 🙏 It really helps the project to gain momentum and credibility. It's a small contribution back to the project with a big impact. |
Description
PUBSUB_EMULATOR_HOSTon the PubSub producer to configure for an emulatorRelated issue(s)
Fixes #1846