Render smoke tests for services without support for account ID routing #3808
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Follow-up on #3799
Description
This PR updates the smoke test rendering process for services whose models specify the
smokeTests
trait (example). Previously,SmokeTestsDecorator
skipped rendering whenuseAccountIdRouting
was set to true in the vendor parameters, which is the default forAwsVendorParams
. Even though the Rust SDK does not currently support the account ID routing, it is safe to render these tests. This is because existing smoke tests do not rely on this feature, and when account ID routing is used, the Rust SDK will fall back to other means to sourcing the identity.This PR includes a minor fix: it uses
aws_config
to load default configurations.config::Builder::new()
would have no credentials provider chain available, which would then result in test failures at runtime.By bringing
aws-config
, theSmokeTestsDecoratorTest
no longer works, since the AWS runtime crates required byaws-config
conflict with those generated byawsSdkIntegrationTest
(a known limitation). For example:Therefore, we removed
SmokeTestsDecoratorTest.kt
only in this PR to ship the feature, but are planning to restore it in the next PR by directly testingSmokeTestsInstantiator
without usingawsSdkIntegrationTest
.Testing
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.