Skip to content

Commit

Permalink
Test with new protocol tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Oct 18, 2024
1 parent 5a58eff commit aab4c5f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"uri": "/service/RpcV2Protocol/operation/EmptyInputOutput",
"body": "v/8=",
"headers": {
"Accept": "application/cbor",
"Content-Type": "application/cbor",
"smithy-protocol": "rpc-v2-cbor"
},
Expand Down Expand Up @@ -76,6 +77,7 @@
"uri": "/service/RpcV2Protocol/operation/NoInputOutput",
"body": "",
"headers": {
"Accept": "application/cbor",
"smithy-protocol": "rpc-v2-cbor"
},
"forbidHeaders": [
Expand Down Expand Up @@ -129,6 +131,7 @@
"uri": "/service/RpcV2Protocol/operation/OptionalInputOutput",
"body": "v/8=",
"headers": {
"Accept": "application/cbor",
"Content-Type": "application/cbor",
"smithy-protocol": "rpc-v2-cbor"
},
Expand Down Expand Up @@ -217,6 +220,7 @@
"uri": "/service/RpcV2Protocol/operation/RecursiveShapes",
"body": "v2ZuZXN0ZWS/Y2Zvb2RGb28xZm5lc3RlZL9jYmFyZEJhcjFvcmVjdXJzaXZlTWVtYmVyv2Nmb29kRm9vMmZuZXN0ZWS/Y2JhcmRCYXIy//////8=",
"headers": {
"Accept": "application/cbor",
"Content-Type": "application/cbor",
"smithy-protocol": "rpc-v2-cbor"
},
Expand Down Expand Up @@ -359,6 +363,7 @@
"uri": "/service/RpcV2Protocol/operation/RpcV2CborDenseMaps",
"body": "oW5kZW5zZVN0cnVjdE1hcKJjZm9voWJoaWV0aGVyZWNiYXqhYmhpY2J5ZQ==",
"headers": {
"Accept": "application/cbor",
"Content-Type": "application/cbor",
"smithy-protocol": "rpc-v2-cbor"
},
Expand Down Expand Up @@ -394,6 +399,7 @@
"uri": "/service/RpcV2Protocol/operation/RpcV2CborDenseMaps",
"body": "om5kZW5zZU51bWJlck1hcKFheABvZGVuc2VCb29sZWFuTWFwoWF49A==",
"headers": {
"Accept": "application/cbor",
"Content-Type": "application/cbor",
"smithy-protocol": "rpc-v2-cbor"
},
Expand Down Expand Up @@ -430,6 +436,7 @@
"uri": "/service/RpcV2Protocol/operation/RpcV2CborDenseMaps",
"body": "oWtkZW5zZVNldE1hcKJheIBheYJhYWFi",
"headers": {
"Accept": "application/cbor",
"Content-Type": "application/cbor",
"smithy-protocol": "rpc-v2-cbor"
},
Expand Down Expand Up @@ -665,6 +672,7 @@
"uri": "/service/RpcV2Protocol/operation/RpcV2CborLists",
"body": "v2pzdHJpbmdMaXN0gmNmb29jYmFyaXN0cmluZ1NldIJjZm9vY2JhcmtpbnRlZ2VyTGlzdIIBAmtib29sZWFuTGlzdIL19G10aW1lc3RhbXBMaXN0gsH7QdTX+/OAAADB+0HU1/vzgAAAaGVudW1MaXN0gmNGb29hMGtpbnRFbnVtTGlzdIIBAnBuZXN0ZWRTdHJpbmdMaXN0goJjZm9vY2JhcoJjYmF6Y3F1eG1zdHJ1Y3R1cmVMaXN0gqJhYWExYWJhMqJhYWEzYWJhNGhibG9iTGlzdIJDZm9vQ2Jhcv8=",
"headers": {
"Accept": "application/cbor",
"Content-Type": "application/cbor",
"smithy-protocol": "rpc-v2-cbor"
},
Expand Down Expand Up @@ -696,6 +704,7 @@
"uri": "/service/RpcV2Protocol/operation/RpcV2CborLists",
"body": "v2pzdHJpbmdMaXN0n///",
"headers": {
"Accept": "application/cbor",
"Content-Type": "application/cbor",
"smithy-protocol": "rpc-v2-cbor"
},
Expand Down Expand Up @@ -727,6 +736,7 @@
"uri": "/service/RpcV2Protocol/operation/RpcV2CborLists",
"body": "oWpzdHJpbmdMaXN0gA==",
"headers": {
"Accept": "application/cbor",
"Content-Type": "application/cbor",
"smithy-protocol": "rpc-v2-cbor"
},
Expand Down Expand Up @@ -841,6 +851,7 @@
"uri": "/service/RpcV2Protocol/operation/SimpleScalarProperties",
"body": "v2lieXRlVmFsdWUFa2RvdWJsZVZhbHVl+z/+OVgQYk3TcWZhbHNlQm9vbGVhblZhbHVl9GpmbG9hdFZhbHVl+kD0AABsaW50ZWdlclZhbHVlGQEAaWxvbmdWYWx1ZRkmkWpzaG9ydFZhbHVlGSaqa3N0cmluZ1ZhbHVlZnNpbXBsZXB0cnVlQm9vbGVhblZhbHVl9WlibG9iVmFsdWVDZm9v/w==",
"headers": {
"Accept": "application/cbor",
"Content-Type": "application/cbor",
"smithy-protocol": "rpc-v2-cbor"
},
Expand Down Expand Up @@ -870,6 +881,7 @@
"uri": "/service/RpcV2Protocol/operation/SimpleScalarProperties",
"body": "v/8=",
"headers": {
"Accept": "application/cbor",
"Content-Type": "application/cbor",
"smithy-protocol": "rpc-v2-cbor"
},
Expand Down Expand Up @@ -900,6 +912,7 @@
"uri": "/service/RpcV2Protocol/operation/SimpleScalarProperties",
"body": "v2tkb3VibGVWYWx1Zft/+AAAAAAAAGpmbG9hdFZhbHVl+n/AAAD/",
"headers": {
"Accept": "application/cbor",
"Content-Type": "application/cbor",
"smithy-protocol": "rpc-v2-cbor"
},
Expand Down Expand Up @@ -930,6 +943,7 @@
"uri": "/service/RpcV2Protocol/operation/SimpleScalarProperties",
"body": "v2tkb3VibGVWYWx1Zft/8AAAAAAAAGpmbG9hdFZhbHVl+n+AAAD/",
"headers": {
"Accept": "application/cbor",
"Content-Type": "application/cbor",
"smithy-protocol": "rpc-v2-cbor"
},
Expand Down Expand Up @@ -960,6 +974,7 @@
"uri": "/service/RpcV2Protocol/operation/SimpleScalarProperties",
"body": "v2tkb3VibGVWYWx1Zfv/8AAAAAAAAGpmbG9hdFZhbHVl+v+AAAD/",
"headers": {
"Accept": "application/cbor",
"Content-Type": "application/cbor",
"smithy-protocol": "rpc-v2-cbor"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def set_engine(context, protocol, engine)
when /xml/, /ec2/, /query/
Aws::Xml::Parser
when /smithy-rpc-v2-cbor/
Aws::RpcV2 # autoload
Aws::Cbor
else
raise "unsupported protocol: #{protocol}"
Expand Down
2 changes: 2 additions & 0 deletions gems/aws-sdk-core/lib/aws-sdk-core/rpc_v2.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_relative 'cbor'
require_relative 'rpc_v2/handler'
require_relative 'rpc_v2/content_type_handler'
Expand Down

0 comments on commit aab4c5f

Please sign in to comment.