Dev mode gRPC test
#33702
Replies: 2 comments 2 replies
-
/cc @alesj (grpc), @cescoffier (grpc) |
Beta Was this translation helpful? Give feedback.
0 replies
-
gRPC testability is tricky as gRPC stubs are in general final classes, which cannot be proxied. So, for mutiny we workaround that problem. We cannot in the general case. About 2) I'm not sure I understand. The service implementation and how it's consumed are unrelated. One can be blocking while the other one reactive. About the side question, yes, we want to do it... It's just taking time (and does not have a high priority, unfortunately). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In Dev mode, you are able to test the running gRPC services at http://localhost:8080/q/dev-v1/io.quarkus.quarkus-grpc/services
However, the test link will only be visible for a service if it is deemed to
hasTestableMethod
. On stepping through the code inGrpcDevConsoleProcessor
, this will only be the case if there is aMUTINY_GRPC
class for the service available.In my case I have 2 services - 1 with java code generated by
protobuf-maven-plugin
and 1 generated byquarkus-maven-plugin
. Both services have been implemented using the blocking API but only the one generated byquarkus-maven-plugin
is testable.@GrpcService
implementation is blocking (extendsFooGrpc.FooGrpcImplBase
) but is still deemed testable?Side question: is this UI planned to be available under the v2 dev UI?
Beta Was this translation helpful? Give feedback.
All reactions