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 new awsQuery tests for nested structs and fix endpoint test #833

Merged
merged 3 commits into from
Jun 16, 2021

Conversation

aajtodd
Copy link
Contributor

@aajtodd aajtodd commented Jun 15, 2021

Description of changes:
We ran into an issue with our serializer implementation on a real service (SES) that had a nested structure with list input (specifically SendEmailRequest.Destination$ToAddresses. I've added tests for both lists and maps (double check for correctness). Also there appears to be a broken test unless I'm mistaken, I've fixed that as well.

  • Adds tests lists/maps in a nested structure
  • Fix the expected version of the AwsQueryEndpointTrait test

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

- Adds tests lists/maps in a nested structure
- Fix the expected version of the `AwsQueryEndpointTrait` test
Copy link
Contributor

@JordonPhillips JordonPhillips left a comment

Choose a reason for hiding this comment

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

Looks good! Would you mind replicating these into the ec2 query tests as well?

@aajtodd
Copy link
Contributor Author

aajtodd commented Jun 15, 2021

Looks good! Would you mind replicating these into the ec2 query tests as well?

@JordonPhillips Sure thing, do you want it in a separate PR or update this one?

@JordonPhillips
Copy link
Contributor

updating this one is good

headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
body: "Action=QueryLists&Version=2020-01-08&NestedWithList.ListArg.member.1=A&NestedWithList.ListArg.member.2=B",
Copy link
Contributor

Choose a reason for hiding this comment

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

ec2 doesn't have the member segment - it looks like our docs are actually wrong on this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ahh good catch, haven't implemented EC2 protocol yet and missed that difference.

@JordonPhillips JordonPhillips merged commit 60a0730 into smithy-lang:main Jun 16, 2021
@aajtodd aajtodd deleted the awsquery-tests branch June 16, 2021 14:29
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.

3 participants