You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test that clients and servers reject when encountering additional tokens after deserializing the top-level structure (although we can only really test servers with @httpMalformedRequestTests due to the lack of HTTP malformed response testing #2334). We have to test both when the modeled operation input has no members (empty input) and when it does have some members.
Ensure that __type field is only added by servers in top-level structure shapes corresponding to error responses, not by clients, and not if the error shape is reused elsewhere.
Server routing tests, rejecting requests with:
unroutable URIs (operation not found).
missing or invalid Smithy-Protocol and Content-Type headers.
forbidden headers (x-amz-target or x-amzn-target).
invalid HTTP verbs (only POST is allowed).
There's no @httpMalformedRequestTests.
Constraint traits (including @required).
Content-Type and Accept header checking.
Test that a malformed CBOR data item gets rejected.
Test that servers reject upon encountering first null value in a non-@sparse list/map.
Test response HTTP status codes, honoring the only supported HTTP binding trait, @httpError.
The text was updated successfully, but these errors were encountered:
I'll use this issue to track lack of coverage in the RPC v2 CBOR protocol test suite: https://github.com/smithy-lang/smithy/tree/main/smithy-protocol-tests/model/rpcv2Cbor; I'll update the issue description as I find issues when finishing my implementation.
union
shapesUnit
.Unit
.structure
shapes@httpMalformedRequestTests
due to the lack of HTTP malformed response testing #2334). We have to test both when the modeled operation input has no members (empty input) and when it does have some members.X-Amzn-Target
header in requests.X-Amzn-ErrorType
header in responses.__type
is serialized as expected.__type
field is only added by servers in top-level structure shapes corresponding to error responses, not by clients, and not if the error shape is reused elsewhere.Smithy-Protocol
andContent-Type
headers.x-amz-target
orx-amzn-target
).POST
is allowed).@httpMalformedRequestTests
.@required
).Content-Type
andAccept
header checking.null
value in a non-@sparse
list/map.@httpError
.The text was updated successfully, but these errors were encountered: