-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor weld testing with protocol welds
- Loading branch information
Showing
18 changed files
with
253 additions
and
193 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ $version: "2" | |
|
||
namespace smithy.ruby.tests | ||
|
||
service NoProtocol {} | ||
service NoProtocolService {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"smithy": "2.0", | ||
"shapes": { | ||
"smithy.protocols#StringList": { | ||
"type": "list", | ||
"member": { | ||
"target": "smithy.api#String" | ||
}, | ||
"traits": { | ||
"smithy.api#documentation": "A list of String shapes.", | ||
"smithy.api#private": {} | ||
} | ||
}, | ||
"smithy.protocols#rpcv2Cbor": { | ||
"type": "structure", | ||
"members": { | ||
"http": { | ||
"target": "smithy.protocols#StringList", | ||
"traits": { | ||
"smithy.api#documentation": "Priority ordered list of supported HTTP protocol versions." | ||
} | ||
}, | ||
"eventStreamHttp": { | ||
"target": "smithy.protocols#StringList", | ||
"traits": { | ||
"smithy.api#documentation": "Priority ordered list of supported HTTP protocol versions\nthat are required when using event streams." | ||
} | ||
} | ||
}, | ||
"traits": { | ||
"smithy.api#documentation": "An RPC-based protocol that serializes CBOR payloads.", | ||
"smithy.api#protocolDefinition": { | ||
"traits": [ | ||
"smithy.api#cors", | ||
"smithy.api#endpoint", | ||
"smithy.api#hostLabel", | ||
"smithy.api#httpError" | ||
] | ||
}, | ||
"smithy.api#trait": { | ||
"selector": "service" | ||
}, | ||
"smithy.api#traitValidators": { | ||
"rpcv2Cbor.NoDocuments": { | ||
"selector": "service ~> member :test(> document)", | ||
"message": "This protocol does not support document types" | ||
} | ||
} | ||
} | ||
}, | ||
"smithy.ruby.tests#Rpcv2CborService": { | ||
"type": "service", | ||
"traits": { | ||
"smithy.protocols#rpcv2Cbor": {} | ||
} | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$version: "2" | ||
|
||
namespace smithy.ruby.tests | ||
|
||
use smithy.protocols#rpcv2Cbor | ||
|
||
@rpcv2Cbor | ||
service Rpcv2CborService {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"version": "1.0", | ||
"maven": { | ||
"dependencies": [ | ||
"software.amazon.smithy:smithy-protocol-traits:[1.0,2.0)" | ||
] | ||
} | ||
} |
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
Oops, something went wrong.