Skip to content

Use list of string for queryParams#240

Merged
mtdowling merged 1 commit intomasterfrom
fix-query-protocol-tests
Jan 3, 2020
Merged

Use list of string for queryParams#240
mtdowling merged 1 commit intomasterfrom
fix-query-protocol-tests

Conversation

@mtdowling
Copy link
Copy Markdown
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
@mtdowling mtdowling force-pushed the fix-query-protocol-tests branch from 68cb6f4 to 82d60d0 Compare January 3, 2020 17:06
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 force-pushed the fix-query-protocol-tests branch from 82d60d0 to 7de413d Compare January 3, 2020 17:07
@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