You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This means it won't work anywhere where we need to rely on Jetty12 like the 3.x.x releases of Spring Boot. It would be nice to support both Jetty 11 and 12 like we do in WireMock core
Also ran into this.
Wiremock has a jetty12 version, the grpc extension unfortunately does not.
This makes it very hard to use it in setups like with SpringBoot 3.x
For reference, i can actually run the combination of org.wiremock:wiremock-jetty12:3.9.1 and org.wiremock:wiremock-grpc-extension:0.8.0, but at runtime the call fails for mssing/invalid content type:
The standalone versions of wiremock and the grpc-extension can be used, but this poses a new problem. The java style creation of stubs wont work with a mixed setup.
message() expects an wiremock.com.google.protobuf.MessageOrBuilder but the messages created for use in the project implement com.google.protobuf.MessageOrBuilder
I resorted to use standalone and json stubbing but it clearly is not an ideal solution.
Would be happy if this can be fixed in next version.
Proposal
At the moment, the gRPC extension is tied to the
Jetty11HttpServer
in thebuildHttpServer
method.This means it won't work anywhere where we need to rely on Jetty12 like the 3.x.x releases of Spring Boot. It would be nice to support both Jetty 11 and 12 like we do in WireMock core
References
https://github.com/wiremock/wiremock/tree/master/wiremock-jetty12
https://wiremock-community.slack.com/archives/C04HHJ7F20G/p1715613366000319
The text was updated successfully, but these errors were encountered: