Skip to content
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

additional service specific protocol tests #3682

Merged
merged 2 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add additional protocol tests for specific services
  • Loading branch information
aajtodd committed Jun 5, 2024
commit 080b3878a08702739b692f4210f63a9a6770a284
23 changes: 18 additions & 5 deletions aws/sdk-adhoc-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ fun baseTest(service: String, module: String, imports: List<String> = listOf()):
}

val allCodegenTests = listOf(
baseTest(
"com.amazonaws.apigateway#BackplaneControlService",
"apigateway",
imports = listOf("models/apigateway-rules.smithy"),
),
baseTest(
"com.amazonaws.testservice#TestService",
"endpoint-test-service",
Expand All @@ -68,6 +63,24 @@ val allCodegenTests = listOf(
"required-values",
imports = listOf("models/required-value-test.smithy"),
),
// service specific protocol tests
baseTest(
"com.amazonaws.apigateway#BackplaneControlService",
"apigateway",
imports = listOf("models/apigateway-rules.smithy"),
),
baseTest(
"com.amazonaws.glacier#Glacier",
"glacier",
),
// baseTest(
// "com.amazonaws.machinelearning#AmazonML_20141212",
// "machinelearning",
// ),
// baseTest(
// "com.amazonaws.s3#AmazonS3",
// "s3"
// )
)

project.registerGenerateSmithyBuildTask(rootProject, pluginName, allCodegenTests)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class IntegrationTestDecorator : ClientCodegenDecorator {
"correctly in the smithy-build.json."
}

val moduleName = codegenContext.moduleName.substring("aws-sdk-".length)
val moduleName = codegenContext.moduleName.removePrefix("aws-sdk-")
val testPackagePath = integrationTestPath.resolve(moduleName)
return if (Files.exists(testPackagePath) && Files.exists(testPackagePath.resolve("Cargo.toml"))) {
val hasTests = Files.exists(testPackagePath.resolve("tests"))
Expand Down