Warm tip: This article is reproduced from serverfault.com, please click

How can I stub a gRPC or HTTP/2 request using WireMock.NET?

发布于 2020-11-30 17:07:54

I have a netcore web service that makes additional calls out to other webservices. One of those other web services is gRPC-based. I would like to write some tests at the protocol level by stubbing out the gRPC-based service with a simulated server.

How can I stub a gRPC or HTTP/2 request using WireMock.NET?

Questioner
yenta
Viewed
11
yenta 2020-12-15 18:59:48

WireMock.NET does not currently support simulating HTTP/2 servers. This would require a change to the library to allow configuring the Protocol on the WireMockServer and a change to the internal ResponseMessage to better support stream bodies and trailing headers.