From 303994ab875bfc18456668383a26bd488f28ad12 Mon Sep 17 00:00:00 2001 From: Julian Antonielli Date: Mon, 31 Oct 2022 11:25:33 +0000 Subject: [PATCH] Mark wrong tests as failing Marks these two tests as failing: - RestJsonWithPayloadExpectsImpliedContentType - RestJsonBodyMalformedMapNullKey These will be fixed in https://github.com/awslabs/smithy/pull/1477. --- .../smithy/generators/protocol/ServerProtocolTestGenerator.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/protocol/ServerProtocolTestGenerator.kt b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/protocol/ServerProtocolTestGenerator.kt index 1cf9eea37a..ad28e4bc71 100644 --- a/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/protocol/ServerProtocolTestGenerator.kt +++ b/codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/protocol/ServerProtocolTestGenerator.kt @@ -905,6 +905,10 @@ class ServerProtocolTestGenerator( private val AwsQuery = "aws.protocoltests.query#AwsQuery" private val Ec2Query = "aws.protocoltests.ec2#AwsEc2" private val ExpectFail = setOf( + // Pending merge from the Smithy team: see https://github.com/awslabs/smithy/pull/1477. + FailingTest(RestJson, "RestJsonWithPayloadExpectsImpliedContentType", TestType.MalformedRequest), + FailingTest(RestJson, "RestJsonBodyMalformedMapNullKey", TestType.MalformedRequest), + // Pending resolution from the Smithy team, see https://github.com/awslabs/smithy/issues/1068. FailingTest(RestJson, "RestJsonHttpWithHeadersButNoPayload", TestType.Request),