Hello! Is it possible to emulate GRPC output strea...
# general
t
Hello! Is it possible to emulate GRPC output stream responses with WireMock? Service description looks like that
Copy code
service EventsService {
  rpc GetEvents(GetEventsRequest) returns (stream GeEventsResponse)
}
I want several instances of GetEventResponse to be sent back by WireMock
b
Hi @TheUsharik, have you seen https://wiremock.org/docs/grpc/ ?
t
There do you see emultion of stream there? Only single message responses.
b
The Java demo client referenced in there also has
stream
responses included: https://github.com/wiremock/wiremock-grpc-demos/tree/main/java I'm not an expert in gRPC so I'm afraid there's not a lot else I can help you with, but it does seem possible to use WireMock in this case, too.
t
That's not looks like a stream response https://github.com/wiremock/wiremock-grpc-demos/blob/main/standalone/wiremock-data/mappings/greeting.json Only one response but I need more.
b