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

Use list of string for queryParams #240

Merged
merged 1 commit into from
Jan 3, 2020
Merged

Conversation

mtdowling
Copy link
Member

queryParams in protocol compliance tests previously used a map of query
string parameter names to values. However, this approach makes it
impossible to define test cases for query string parameter lists where
the serialized query string keys are repeated (which is the default
serialization format used in Smithy HTTP protocol bindings).

Now queryParams is a list of the query string parameter key value pairs
(e.g., queryParams: ["foo=bar", "foo=baz%20bam"]. This allows for testing
any kind of query string serialization format, including repeated key
parameters.

Issue #, if available:

Description of changes:

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

@mtdowling mtdowling requested a review from kstich January 3, 2020 04:11
queryParams in protocol compliance tests previously used a map of query
string parameter names to values. However, this approach makes it
impossible to define test cases for query string parameter lists where
the serialized query string keys are repeated (which is the default
serialization format used in Smithy HTTP protocol bindings).

Now queryParams is a list of the query string parameter key value pairs
(e.g., `queryParams: ["foo=bar", "foo=baz%20bam"]`. This allows for testing
any kind of query string serialization format, including repeated key
parameters.
@mtdowling mtdowling merged commit ad803e2 into master Jan 3, 2020
@mtdowling mtdowling deleted the fix-query-protocol-tests branch January 13, 2020 21:34
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.

2 participants