Commit 34a018f
authored
Cbor Serialization/Deserialization & Protocol Tests (#3538)
* Update generated protocol tests to include RpcV2Cbor
* Add code generation logic for Cbor clients and protocol tests
* Core changes for Cbor (AWSProtocolTest errors, Array.h equality operator, Datetime constructor, AwsProtocolTestHelper, protocol_tests_gen.py))
* Update ServiceGeneratorConfig.java to map smithy-rpc-v2-cbor to CborClientGenerator class
* Add recursive depth backtracking for cbor deserialize maps and lists
* Cbor code gen - Fix logic to determine if pointer or not
* Cbor serialization initial map size counting to use guarded if statement
* Fix cbor encode/decode recursive variable declarations hiding previous
* Updated protocol tests
* cbor indef map make outer map's peektype variable name different for recursive variables
* Update protocol tests
* CborDecode - Cast uints to int
* Cbor deserialization error logging and early exit
* Remove negative timestamp support, check has_value() on peektypes for string/int, add indefinite blob logic
* Add int64_t type for cbor for bounds purposes
* Update protocol tests
* CborCppClientGenerator throw runtime exception for eventStream handling for now
* CborDecodeValue no need to clear StringStream
* Update protocol tests gen to use overrided ValidateBody function so object compairsons are scoped to AwsProtocolTestHelpers
* Fix cbor client generation add path segment bug
* clang-format generated protocol tests (updated protocol_tests_gen.py)1 parent 450a7b4 commit 34a018f
File tree
1,443 files changed
+73193
-56548
lines changed- generated/protocol-tests
- test-clients
- aws-cpp-sdk-ec2-protocol
- include/aws/ec2-protocol
- model
- source
- model
- aws-cpp-sdk-json-protocol
- include/aws/json-protocol
- model
- source
- model
- aws-cpp-sdk-json-rpc-10
- include/aws/json-rpc-10
- model
- source
- model
- aws-cpp-sdk-protocol-mock
- include/aws/protocol-mock
- model
- source
- model
- aws-cpp-sdk-query-compatible-json-rpc-10
- include/aws/query-compatible-json-rpc-10
- model
- source
- model
- aws-cpp-sdk-query-protocol
- include/aws/query-protocol
- model
- source
- model
- aws-cpp-sdk-rest-json-protocol
- include/aws/rest-json-protocol
- model
- source
- model
- aws-cpp-sdk-rest-xml-protocol
- include/aws/rest-xml-protocol
- model
- source
- model
- aws-cpp-sdk-rpcv2protocol
- include/aws/rpcv2protocol
- model
- source
- model
- tests
- input
- ec2
- tests
- json_1_0-query-compatible
- tests
- json_1_0
- tests
- json
- tests
- query
- tests
- rest-json
- tests
- rest-xml
- tests
- smithy-rpc-v2-cbor
- tests
- output
- ec2
- tests
- json_1_0-query-compatible
- tests
- json_1_0
- tests
- json
- tests
- query
- tests
- rest-json
- tests
- rest-xml
- tests
- smithy-rpc-v2-cbor
- tests
- src/aws-cpp-sdk-core
- include/aws/core
- client
- utils
- cbor
- source
- client
- utils
- tests/testing-resources/include/aws/testing
- tools
- code-generation/generator/src/main
- java/com/amazonaws/util/awsclientgenerator
- config
- domainmodels/codegeneration
- cpp
- generators/cpp
- transform
- resources/com/amazonaws/util/awsclientgenerator/velocity/cpp
- cbor
- common
- protocoltests
- request
- result
- scripts/codegen
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
1,443 files changed
+73193
-56548
lines changedLines changed: 751 additions & 708 deletions
Large diffs are not rendered by default.
Lines changed: 17 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | | - | |
14 | 12 | | |
| 13 | + | |
15 | 14 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
23 | 18 | | |
24 | | - | |
25 | 19 | | |
| 20 | + | |
26 | 21 | | |
27 | 22 | | |
28 | 23 | | |
| |||
43 | 38 | | |
44 | 39 | | |
45 | 40 | | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
58 | 50 | | |
59 | | - | |
60 | | - | |
61 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
Lines changed: 11 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
19 | 17 | | |
20 | | - | |
| 18 | + | |
21 | 19 | | |
22 | | - | |
23 | | - | |
| 20 | + | |
| 21 | + | |
Lines changed: 7 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 11 | + | |
| 12 | + | |
15 | 13 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 14 | + | |
| 15 | + | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
22 | | - | |
23 | | - | |
| 19 | + | |
| 20 | + | |
Lines changed: 14 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
| |||
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
| |||
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
50 | | - | |
| 47 | + | |
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
| |||
224 | 221 | | |
225 | 222 | | |
226 | 223 | | |
227 | | - | |
228 | | - | |
229 | | - | |
| 224 | + | |
| 225 | + | |
230 | 226 | | |
231 | 227 | | |
232 | 228 | | |
| |||
237 | 233 | | |
238 | 234 | | |
239 | 235 | | |
240 | | - | |
241 | | - | |
242 | | - | |
| 236 | + | |
| 237 | + | |
243 | 238 | | |
244 | 239 | | |
245 | | - | |
246 | | - | |
| 240 | + | |
| 241 | + | |
Lines changed: 26 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
10 | | - | |
| 8 | + | |
11 | 9 | | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
38 | 21 | | |
39 | | - | |
40 | | - | |
| 22 | + | |
41 | 23 | | |
42 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
43 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
44 | 37 | | |
45 | | - | |
46 | | - | |
| 38 | + | |
| 39 | + | |
0 commit comments