4

I am writing integration tests for my Java Service. We are thinking of using WireMock to mock upstream services. However, one of our upstream returns a Protobuf (grpc) response and I can't seem to understand how to mock a gRPC response using WireMock. I tried to convert the response to byteArray and use that ,however, wiremock fails to deserialize it to Protobuf Java Object.

We have a limitation that we can only use 1 mock server since all our upstream requests are forwarded via a servicemesh sidecar running on a fixed port.

Thanks!

StyleBender
  • 41
  • 1
  • 2

1 Answers1

3

You could use Wiremock-gRPC or any of the other tools mentioned on the Wikipedia comparison site such as the commercial tool Traffic Parrot that supports gRPC or Camouflage.

Wojtek
  • 1,410
  • 2
  • 16
  • 31