-
Notifications
You must be signed in to change notification settings - Fork 55
feat: aws smoke tests support #1437
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
Conversation
… smoke-tests-trait
… smoke-tests-trait
|
A new generated diff is ready to view. |
This comment has been minimized.
This comment has been minimized.
| ) | ||
|
|
||
| /** | ||
| * Uses the AWS Kotlin SDK specific way of configuring `accountIdEndpointMode` |
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.
nit/confusing:
AWS Kotlin SDK specific way
simplified:
Configures
accountIdEndpointModeon an SDK client
Same comment applies to other section writers
| private val useGlobalEndpointSectionWriters = listOf( | ||
| SectionWriterBinding(SmokeTestUseGlobalEndpoint) { writer, _ -> | ||
| writer.write("// Smoke tests modeled the use of `useGlobalEndpoint` config, but it's not supported by the SDK") | ||
| }, | ||
| ) |
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.
I think throwing an exception would be safer. What if the smoke test is dependent on this useGlobalEndpoint config option being set/supported, and it will otherwise fail?
| ) | ||
|
|
||
| /** | ||
| * Ensures we use the provided URI |
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.
consistency: Configures static endpoint on an SDK client
… smoke-tests-trait
… smoke-tests-trait
|
A new generated diff is ready to view. |
This comment has been minimized.
This comment has been minimized.
|
A new generated diff is ready to view. |
This comment has been minimized.
This comment has been minimized.
| "useAccelerate" -> "enableAccelerate" | ||
| "useMultiRegionAccessPoints" -> "disableMrap" | ||
| "useGlobalEndpoint" -> { | ||
| writer.write("throw Exception(#S)", "'useGlobalEndpoint' is not supported by the SDK") |
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.
Exception should be #T and can probably be a better exception type
| */ | ||
| val defaultClientConfig = | ||
| SectionWriterBinding(DefaultClientConfig) { writer, previous -> | ||
| writer.write("#L", previous) |
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.
Is writing previous necessary?
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.
I added previous just in case we add more default client config in the future via another SectionWriterBinding
| resolutionStrategy { | ||
| val sdkVersion: String by settings | ||
| eachPlugin { | ||
| if (requested.id.id == "aws.sdk.kotlin.hll.dynamodbmapper.schema.generator") { | ||
| useModule("aws.sdk.kotlin:dynamodb-mapper-schema-generator-plugin:$sdkVersion") | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| dependencyResolutionManagement { | ||
| repositories { | ||
| mavenLocal() | ||
| mavenCentral() | ||
| } | ||
| } | ||
|
|
||
| rootProject.name = "aws-sdk-kotlin" | ||
|
|
||
| includeBuild("build-support") |
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.
Why is this a diff?
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.
I think this is leftover from a merge from main while DDB mapper was in development. I'll get rid of it
|
A new generated diff is ready to view. |
This comment has been minimized.
This comment has been minimized.
|
Affected ArtifactsChanged in size
|



Issue #
Description of changes
Reintroduces aws smoke tests support after revert
Companion PR: smithy-lang/smithy-kotlin#1160
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.