gripmock icon indicating copy to clipboard operation
gripmock copied to clipboard

How to mock out grpc status code and headers?

Open scvnc opened this issue 2 years ago • 2 comments

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 :)

scvnc avatar Oct 13 '22 16:10 scvnc

I would also be interested in mocking status codes. There is also this old issue on that: https://github.com/tokopedia/gripmock/issues/21.

foreverest avatar Oct 21 '22 16:10 foreverest

https://github.com/tokopedia/gripmock/pull/144 I'm working on it

bsponge avatar Aug 02 '23 21:08 bsponge