grpc-tools icon indicating copy to clipboard operation
grpc-tools copied to clipboard

grpc-replay: print response received

Open righettod opened this issue 3 years ago β€’ 4 comments

Hello,

It is possible to add the capability in the tool to print the response received ?

Thanks a lot again for this toolkit πŸ‘

righettod avatar Nov 14 '20 17:11 righettod

Hey πŸ‘‹πŸ»

Would you mind expanding a bit on what you're looking to get out of this? (i.e. what benefit does printing the response give you?) Just want to make sure there's not a more general enhancement we could make that could be even more useful πŸ™‚

bradleyjkemp avatar Nov 18 '20 16:11 bradleyjkemp

Hi,

In fact after having captured an echange with grpc-dump, I resent it via grpc-replay after having modified the message and I just need to see the response to this replay in order to see if my update has changed the behavior of the service.

I use grpc-replay to perform fuzzing against a service exposed via gRPC.

Feel free to indicate to me if I misuse the toolkit or if I have missed something πŸ˜ƒ

righettod avatar Nov 18 '20 19:11 righettod

Ah I see, that's a very valid use of these tools! πŸ™‚

I see that grpc-replay currently just prints "Err mismatch" if the service returns an unexpected response (https://github.com/bradleyjkemp/grpc-tools/blob/master/grpc-replay/replay/replay.go#L99). Seems completely reasonable to print out what the mismatch is at this point which should fulfill your needs?

I can't guarantee any timelines on adding this but it shouldn't be difficult once I get round to it

bradleyjkemp avatar Nov 21 '20 12:11 bradleyjkemp

Yes, take the time you need, it's a spare time project πŸ˜ƒ

Thanks again for your feedback and this amazing toolikt πŸ‘

righettod avatar Nov 21 '20 15:11 righettod