bradleyjkemp/grpc-tools

grpc-replay: print response received

righettod opened this issue ยท 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 ๐Ÿ‘

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 ๐Ÿ™‚

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 ๐Ÿ˜ƒ

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

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

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