in codegen/smithy-aws-kotlin-codegen/src/main/kotlin/aws/sdk/kotlin/codegen/protocols/core/AwsHttpBindingProtocolGenerator.kt [57:102]
override fun generateProtocolUnitTests(ctx: ProtocolGenerator.GenerationContext) {
val ignoredTests = TestMemberDelta(
setOf(
// restJson
// FIXME - document type not fully supported yet, see https://github.com/awslabs/smithy-kotlin/issues/123
"DocumentTypeInputWithObject",
"DocumentTypeAsPayloadInput",
"DocumentTypeAsPayloadInputString",
"DocumentOutput",
"DocumentTypeAsPayloadOutput",
"DocumentTypeAsPayloadOutputString",
"DocumentInputWithString",
"DocumentInputWithNumber",
"DocumentInputWithBoolean",
"DocumentInputWithList",
"DocumentOutputString",
"DocumentOutputNumber",
"DocumentOutputBoolean",
"DocumentOutputArray",
// awsJson1.1
// FIXME - document type not fully supported yet, see https://github.com/awslabs/smithy-kotlin/issues/123
"PutAndGetInlineDocumentsInput",
// smithy-kotlin#519
"SimpleScalarPropertiesWithWhiteSpace",
"SimpleScalarPropertiesPureWhiteSpace",
),
TestContainmentMode.EXCLUDE_TESTS
)
// The following can be used to generate only a specific test by name.
// val targetedTest = TestMemberDelta(setOf("RestJsonComplexErrorWithNoMessage"), TestContainmentMode.RUN_TESTS)
val requestTestBuilder = AwsHttpProtocolUnitTestRequestGenerator.Builder()
val responseTestBuilder = AwsHttpProtocolUnitTestResponseGenerator.Builder()
val errorTestBuilder = AwsHttpProtocolUnitTestErrorGenerator.Builder()
HttpProtocolTestGenerator(
ctx,
requestTestBuilder,
responseTestBuilder,
errorTestBuilder,
ignoredTests
).generateProtocolTests()
}