Skip to content
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

Merged
merged 2 commits into from
Oct 25, 2022
Merged

Add x-amz-target for missing AWS JSON 1.1 tests #1392

merged 2 commits into from
Oct 25, 2022

Conversation

weihanglo
Copy link
Contributor

@weihanglo weihanglo commented Sep 8, 2022

Issue #, if available:
Resolves #1391

Description of changes: Add missing X-Amz-Target header for AWS JSON 1.1 protocol @httpRequestTests listed in #1391

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@weihanglo weihanglo requested a review from a team as a code owner September 8, 2022 16:11
Signed-off-by: Weihang Lo <weihanglo@users.noreply.github.com>
Copy link
Contributor

@kstich kstich left a 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",
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@kstich kstich left a 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!

@kstich kstich merged commit 3aed056 into smithy-lang:main Oct 25, 2022
@weihanglo weihanglo deleted the add-x-amz-target-for-protocol-test branch October 26, 2022 00:18
david-perez added a commit to smithy-lang/smithy-rs that referenced this pull request Jan 4, 2023
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.
LukeMathWalker pushed a commit to smithy-lang/smithy-rs that referenced this pull request Jan 5, 2023
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.
aws-sdk-rust-ci pushed a commit to awslabs/aws-sdk-rust that referenced this pull request Jan 13, 2023
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.
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.

Invalid AWS JSON 1.1 protocol tests
2 participants