gripmock
gripmock copied to clipboard
How to mock out grpc status code and headers?
I want to verify how my app behaves when the grpc status code is 9
and particular metadata headers (X-DETAIL-CODE
) are being sent, as this is how I am tranmitting error details to my client.
It seems unclear how to do this with the json stub definition or if it's currently possible.
Thanks :)
I would also be interested in mocking status codes. There is also this old issue on that: https://github.com/tokopedia/gripmock/issues/21.
https://github.com/tokopedia/gripmock/pull/144 I'm working on it