Skip to content

Be tolerant of emtpy bodies in payload tests #508

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

Merged
merged 2 commits into from
Jun 6, 2025

Conversation

JordonPhillips
Copy link
Contributor

In the real world there's no way to distinguish between a null string/blob payload and an empty one (similar for bytes). This updates protocol test generation to always set string or blob payload members to account for that.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@JordonPhillips JordonPhillips requested a review from a team as a code owner June 4, 2025 14:46
A body with a value of None is equivalent to a body with an empty
bytes value. This updates the test generator to smooth that out.
@JordonPhillips JordonPhillips force-pushed the always-set-response-body branch from d9896a8 to 41a32c0 Compare June 5, 2025 13:55
@JordonPhillips JordonPhillips merged commit 3afcd5a into develop Jun 6, 2025
3 checks passed
@JordonPhillips JordonPhillips deleted the always-set-response-body branch June 6, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants