-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VerifyAll does not print request body #73
Comments
It would seem helpful and trivial to change, but there are issues/difficulties:
All of this is doable, sure, but I am not sure the added complexity is really worth it. That said, I am open to suggestions and am interested to hear other thoughts on this. |
@ivanjx Perhaps using a verbosity flag to opt-in would make sense? This ensures we don't flood test output logs in case of a test failure where a mock has many seen requests and/or with large response payloads, unless explicitly opted-in? I am somewhat hesitant about this, due to many CI environments having strict limits on log file size. Body truncation would still be necessary to eg. 5000 chars (considering someone could mock a large file upload) as would media type handling (to catch binary content), but this is doable. That still leaves the problem of |
how about a diff of the body if the type is text (plain/text, json, xml, html, etc) ? |
i think it would be helpful if the request body is also printed when calling
VerifyAll()
instead of just the header.The text was updated successfully, but these errors were encountered: