-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 smithy-lang/smithy#1477. Co-authored-by: david-perez <d@vidp.dev>
- Loading branch information
1 parent
4c852b1
commit 5eb3c82
Showing
1 changed file
with
69 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters