Skip to content

Be tolerant of emtpy bodies in payload tests#508

Merged
JordonPhillips merged 2 commits into
developfrom
always-set-response-body
Jun 6, 2025
Merged

Be tolerant of emtpy bodies in payload tests#508
JordonPhillips merged 2 commits into
developfrom
always-set-response-body

Conversation

@JordonPhillips
Copy link
Copy Markdown
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