-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can WireMock gRPC extension be used with this? #58
Comments
HI @ranjanashish Thanks for your question. Actually, I'm not familiar with the referenced extension yet. However, if I get some time I'll investigate it. |
Hi Christian, Thank you for looking into it. I recently attended a talk at SF Java group where Tom presented this extension. I am sharing the link to the talk here in case you find it helpful - https://youtu.be/RDZTDsNXeLw?si=63GwV7U8G87ikj6O |
I've watched the video - thanks for sharing it. The main challenge is the |
I think the best possible solution would be creating a WireMock Dev Service, based on https://github.com/wiremock/wiremock-testcontainers-java that supports extensions, etc.. Happy to cooperate on that @chberger |
@chberger WireMock can automatically load extensions via Java's service loader mechanism. There's a config flag you need to enable on WireMock's startup options, but otherwise placing the extension JAR file on the classpath would be enough. |
Hi @tomakehurst, thanks for pointing this out. I'm already aware of this feature. Your documentation is quite good. Btw: I am honored that you are interested in this extension :-) So personally I think there is no need to introduce
Since @oleg-nenashev offered some support, we maybe could share some work. wdyt? |
Work in progress, I guess! |
@chberger This is being labeled as stale. |
Yeah, it's on on my list. I'll implement it as soon as all the basic issues are solved. |
@chberger I'm happy to collaborate on this if you would like. I would like to be able to combine the WIremock gRPC extension with this dev service, as I would like to have this capability in the Quarkus Superheroes. Note though that the application in question doesn't necessarily have to implement a gRPC service. It's more likely that because it wants to use Wiremock it is a consumer of a gRPC service that wants to mock a gRPC backend. I've also contributed to the Wiremock gRPC extension, so I have history with both. Today I'm doing this: https://github.com/quarkusio/quarkus-super-heroes/blob/main/rest-fights/src/test/java/io/quarkus/sample/superheroes/fight/LocationsWiremockGrpcServerResource.java and consuming it in https://github.com/quarkusio/quarkus-super-heroes/blob/main/rest-fights/src/test/java/io/quarkus/sample/superheroes/fight/rest/FightResourceIT.java But because its not part of the DevService it can only be used in tests. The |
Hi @edeandrea, Firstly, I want to extend my apologies for the delayed response. I've been quite busy with my full-time job lately, but I deeply appreciate your offer to help. 💪 Your proposal sounds incredibly valuable, and I am very much open to collaborating. 👍 Regarding the Your insights would be incredibly valuable here. Thank you once again for your patience and willingness to assist. I look forward to your thoughts on this matter. @geoand also contributed the extension scanning mechanism via the Java's service loader mechanism: #111. I guess this might be helpful as mentioned here #58 (comment) |
No worries at all @chberger !
I'm not sure what you mean? I'm not familiar with any gRPC Dev service that provides mocking like the Wiremock gRPC service does. I know the Microcks extension can, & we use that in one of the apps in the superheroes. |
@chberger This is being labeled as stale. |
@chberger This is being labeled as stale. |
@chberger This is being labeled as stale. |
@chberger This is being closed due to inactivity. |
Please reopen this. |
Not stale |
@quarkiverse/quarkiverse-wiremock This is being labeled as stale. |
@quarkiverse/quarkiverse-wiremock This is being closed due to inactivity. |
Please reopen |
https://mvnrepository.com/artifact/org.wiremock/wiremock-grpc-extension
The text was updated successfully, but these errors were encountered: