Commit f36458a
authored
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here -->
* #4265
* #4189
## Description
* Adds a new `with_test_defaults_v2()` method to all clients supporting
region configuration. This new method applies `us-east-1` as default
region if not set by user. This allows `aws-smithy-mocks` to work for
non AWS SDK generated clients. This is only set as the default if a user
has not already supplied one.
* NOTE: We are choosing to add a new method here for backwards
compatibility concerns (our own generated endpoint tests break because
of precedence problems between endpoint rules and with_test_defaults).
* Clarify `test-util` feature requirement when using `aws-smithy-mocks`.
## Checklist
<!--- If a checkbox below is not applicable, then please DELETE it
rather than leaving it unchecked -->
- [x] For changes to the smithy-rs codegen or runtime crates, I have
created a changelog entry Markdown file in the `.changelog` directory,
specifying "client," "server," or both in the `applies_to` key.
- [x] For changes to the AWS SDK, generated SDK code, or SDK runtime
crates, I have created a changelog entry Markdown file in the
`.changelog` directory, specifying "aws-sdk-rust" in the `applies_to`
key.
----
_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
1 parent 5e50dfe commit f36458a
File tree
12 files changed
+369
-177
lines changed- .changelog
- aws
- codegen-aws-sdk/src/main/kotlin/software/amazon/smithy/rustsdk
- rust-runtime
- aws-config
- sdk
- codegen-client/src/main/kotlin/software/amazon/smithy/rust/codegen/client/smithy/generators/config
- rust-runtime
- aws-smithy-mocks
- src
- tests
- tools/ci-build/publisher
12 files changed
+369
-177
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
208 | 219 | | |
209 | 220 | | |
210 | 221 | | |
| |||
0 commit comments