Run HttpMalformedRequest tests through router (#1904)
* Add links to relevant issues/PRs for failing tests * Update codegen-server/src/main/kotlin/software/amazon/smithy/rust/codegen/server/smithy/generators/protocol/ServerProtocolTestGenerator.kt Co-authored-by:david-perez <d@vidp.dev> * Make `build_router_and_make_request` return the response * Use `rustWriter.write` over `rustWriter.rust` for incomplete rust code * Run HttpMalformedRequest tests through router * Don't assert on operation_extension This causes HttpMalformedRequest tests to fail. * Refactor code to avoid repetition * Run ktlint * Check operation extension for regular request tests * Run ktlint * Remove unused parameter from `makeRequest` * Refactor checkRequest2 * Remove `checkRequest/2`, run new-style tests for malformed http requests - Remove `checkRequest`, `checkRequest2` in favour of using `makeRequest`/`makeRequest2` directly - Run service builder tests for MalformedHttpRequest tests * Format comment better * Remove `RestJsonStreamingTraitsRequireLengthWithBlob` from failing tests This test actually passes fine, but is not relevant for the server. * Add comment about `RestJsonHttpResponseCodeDefaultsToModeledCode` * Remove channel assertion on `makeRequest2` * Use `checkOperationExtension` for `makeRequest2` * Attempt to use a channel for both `makeRequest/2` * Go back to using channel for new api and operation extension for old api * Fix malformedHttpRequest tests * Add block around each API's tests * Remove unrelated file * 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 . Co-authored-by:
david-perez <d@vidp.dev>
Loading
Please register or sign in to comment