-
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 new awsQuery tests for nested structs and fix endpoint test #833
Conversation
- Adds tests lists/maps in a nested structure - Fix the expected version of the `AwsQueryEndpointTrait` test
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.
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? |
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", |
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.
ec2 doesn't have the member
segment - it looks like our docs are actually wrong on this
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.
Ahh good catch, haven't implemented EC2 protocol yet and missed that difference.
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.
AwsQueryEndpointTrait
testBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.