-
Notifications
You must be signed in to change notification settings - Fork 49
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
feat: aws smoke tests support #1437
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
accountIdEndpointMode
on 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
settings.gradle.kts
Outdated
if ("dynamodb".isBootstrappedService) { | ||
include(":hll:dynamodb-mapper") | ||
include(":hll:dynamodb-mapper:dynamodb-mapper") | ||
include(":hll:dynamodb-mapper:dynamodb-mapper-codegen") | ||
include(":hll:dynamodb-mapper:dynamodb-mapper-ops-codegen") | ||
include(":hll:dynamodb-mapper:dynamodb-mapper-schema-codegen") | ||
include(":hll:dynamodb-mapper:dynamodb-mapper-annotations") | ||
include(":hll:dynamodb-mapper:dynamodb-mapper-schema-generator-plugin") | ||
include(":hll:dynamodb-mapper:tests:dynamodb-mapper-schema-generator-plugin-test") | ||
} else { | ||
logger.warn(":services:dynamodb is not bootstrapped, skipping :hll:dynamodb-mapper and subprojects") | ||
} |
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.
Quality Gate passedIssues Measures |
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.