-
Notifications
You must be signed in to change notification settings - Fork 218
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
Add x-amz-target
for missing AWS JSON 1.1 tests
#1392
Add x-amz-target
for missing AWS JSON 1.1 tests
#1392
Conversation
Signed-off-by: Weihang Lo <weihanglo@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for submitting this!
There are a few more tests missing the header it looks like. One has a comment since it's in an adjusted file, there are two in endpoints.smithy
and another one in endpoint-paths.smithy
. Would you mind updating to add those as well?
headers: {"Content-Type": "application/x-amz-json-1.1"}, | ||
headers: { | ||
"Content-Type": "application/x-amz-json-1.1", | ||
"X-Amz-Target": "JsonProtocol.NullOperation", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a test above this that, while client
specific, should have the header.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. Updated. However, I don't have any test at hand to verify their behaviour.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was able to validate these, thanks again!
Fixes were upstreamed in: * smithy-lang/smithy#1040, which was rolled out in Smithy v1.18, 10 months ago. * smithy-lang/smithy#1392, which was rolled out in Smithy v1.26.1, 9 weeks ago.
Fixes were upstreamed in: * smithy-lang/smithy#1040, which was rolled out in Smithy v1.18, 10 months ago. * smithy-lang/smithy#1392, which was rolled out in Smithy v1.26.1, 9 weeks ago.
Fixes were upstreamed in: * smithy-lang/smithy#1040, which was rolled out in Smithy v1.18, 10 months ago. * smithy-lang/smithy#1392, which was rolled out in Smithy v1.26.1, 9 weeks ago.
Issue #, if available:
Resolves #1391
Description of changes: Add missing
X-Amz-Target
header for AWS JSON 1.1 protocol@httpRequestTests
listed in #1391By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.