Skip to content

Update protocol test request body comparison #268

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 1 commit into from
Feb 19, 2021

Conversation

kstich
Copy link
Contributor

@kstich kstich commented Jan 29, 2021

This commit updates the request body comparison generation for
protocol tests to safely handle having multiple bodyMediaType
settings in the same suite of protocol tests. It also updates the
methodology for comparing blob bodies to not be a special case in
the generator, as they can have alternate media types.

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

This commit updates the request body comparison generation for
protocol tests to safely handle having multiple bodyMediaType
settings in the same suite of protocol tests. It also updates the
methodology for comparing blob bodies to not be a special case in
the generator, as they can have alternate media types.
@kstich kstich requested a review from mtdowling January 29, 2021 00:03
@kstich kstich requested review from JordonPhillips and removed request for mtdowling February 10, 2021 19:46
@kstich kstich requested review from AllanZhengYP and alexforsyth and removed request for AllanZhengYP February 12, 2021 17:25
@alexforsyth
Copy link
Contributor

@kstich what are the generated changes?

@kstich
Copy link
Contributor Author

kstich commented Feb 19, 2021

See aws/aws-sdk-js-v3#2049

Copy link
Contributor

@alexforsyth alexforsyth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@trivikr trivikr merged commit ca099f2 into main Feb 19, 2021
@trivikr trivikr deleted the test_comparison_generation_updates branch February 19, 2021 17:55
srchase pushed a commit to srchase/smithy-typescript that referenced this pull request Mar 17, 2023
This commit updates the request body comparison generation for
protocol tests to safely handle having multiple bodyMediaType
settings in the same suite of protocol tests. It also updates the
methodology for comparing blob bodies to not be a special case in
the generator, as they can have alternate media types.
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.

4 participants