-
- Downloads
Generate `httpMalformedRequestTests` (#1213)
Smithy defines one trait specifically for the behavior of server protocol implementations. From https://awslabs.github.io/smithy/1.0/spec/http-protocol-compliance-tests.html#httpmalformedrequesttests: > The `httpMalformedRequestTests` trait is used to define how a malformed > HTTP request is rejected given a specific protocol and HTTP message. > Protocol implementations MUST assert that requests are rejected during > request processing. This commit implements code generation for these tests. The ones for the restJson1 protocol have been added to the list of failing tests. These should begin passing once we start implementing constraint traits https://awslabs.github.io/smithy/1.0/spec/core/constraint-traits.html
Showing
- codegen-server-test/build.gradle.kts 1 addition, 0 deletionscodegen-server-test/build.gradle.kts
- codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/protocol/ServerProtocolTestGenerator.kt 814 additions, 102 deletions...smithy/generators/protocol/ServerProtocolTestGenerator.kt
- codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/protocols/ServerHttpProtocolGenerator.kt 1 addition, 0 deletions...en/server/smithy/protocols/ServerHttpProtocolGenerator.kt
Loading
Please register or sign in to comment