Open david-perez opened 2 weeks ago
Should there be a test similar to "RpcV2CborDeserializesDenseSetMapAndSkipsNull" for lists?
We have the following tests to check servers and clients ignore unknown members:
For clients:RpcV2CborExtraFieldsInTheBodyShouldBeSkippedByClients
{_
"byteValue": 5,
"doubleValue": 1.889_3,
"falseBooleanValue": false,
"floatValue": 7.625_2,
"extraObject": {_
"indefiniteLengthMap": {_ "withAnArray": [_ 1, 2, 3]},
"definiteLengthMap": {
"withADefiniteArray": [1, 2, 3],
"andSomeIndefiniteLengthString": "that has, been chunked on comma",
"normalString": "foo",
},
"shortValue": 9999_1,
"someOtherField": "this should be skipped",
},
"integerValue": 256_1,
"longValue": 9873_1,
"shortValue": 9898_1,
"stringValue": "simple",
"trueBooleanValue": true,
"blobValue": h'666f6f',
}
For servers: RpcV2CborExtraFieldsInTheBodyShouldBeSkippedByServers:
{_
"byteValue": 5,
"doubleValue": 1.889_3,
"falseBooleanValue": false,
"floatValue": 7.625_2,
"extraObject": {_
"indefiniteLengthMap": {_ "withAnArray": [_ 1, 2, 3]},
"definiteLengthMap": {
"withADefiniteArray": [1, 2, 3],
"andSomeIndefiniteLengthString": "that has, been chunked on comma",
"normalString": "foo",
},
"shortValue": 9999_1,
"someOtherField": "this should be skipped",
},
"integerValue": 256_1,
"longValue": 9873_1,
"shortValue": 9898_1,
"stringValue": "simple",
"trueBooleanValue": true,
"blobValue": h'666f6f',
}
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 https://github.com/smithy-lang/smithy/issues/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.@httpMalformedRequestTests
.@required
).Content-Type
andAccept
header checking.null
value in a non-@sparse
list/map.@httpError
.