Skip to content

Commit 3fa1c8e

Browse files
committed
Add more traits to protocol test services
1 parent e671ac9 commit 3fa1c8e

File tree

6 files changed

+19
-0
lines changed

6 files changed

+19
-0
lines changed

smithy-aws-protocol-tests/model/awsJson1_0/main.smithy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@ $version: "2.0"
33
namespace aws.protocoltests.json10
44

55
use aws.api#service
6+
use aws.auth#sigv4
67
use aws.protocols#awsJson1_0
78
use smithy.test#httpRequestTests
89
use smithy.test#httpResponseTests
910

1011
@service(sdkId: "JSON RPC 10")
12+
@sigv4(name: "jsonrpc10")
1113
@awsJson1_0
14+
@title("Sample Json 1.0 Protocol Service")
1215
service JsonRpc10 {
1316
version: "2020-07-14",
1417
operations: [

smithy-aws-protocol-tests/model/awsQuery/main.smithy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,17 @@ $version: "2.0"
33
namespace aws.protocoltests.query
44

55
use aws.api#service
6+
use aws.auth#sigv4
67
use aws.protocols#awsQuery
78
use smithy.test#httpRequestTests
89
use smithy.test#httpResponseTests
910

1011
/// A query service that sends query requests and XML responses.
1112
@service(sdkId: "Query Protocol")
13+
@sigv4(name: "awsquery")
1214
@awsQuery
1315
@xmlNamespace(uri: "https://example.com/")
16+
@title("Sample Query Protocol Service")
1417
service AwsQuery {
1518
version: "2020-01-08",
1619
operations: [

smithy-aws-protocol-tests/model/ec2Query/main.smithy

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,18 @@ $version: "2.0"
2929
namespace aws.protocoltests.ec2
3030

3131
use aws.api#service
32+
use aws.auth#sigv4
3233
use aws.protocols#ec2Query
3334
use smithy.test#httpRequestTests
3435
use smithy.test#httpResponseTests
3536

3637
/// An EC2 query service that sends query requests and XML responses.
3738
@service(sdkId: "EC2 Protocol")
39+
@suppress(["SigV4Traits"])
40+
@sigv4(name: "ec2query")
3841
@ec2Query
3942
@xmlNamespace(uri: "https://example.com/")
43+
@title("Sample Ec2 Protocol Service")
4044
service AwsEc2 {
4145
version: "2020-01-08",
4246
operations: [

smithy-aws-protocol-tests/model/restJson1/main.smithy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ $version: "2.0"
33
namespace aws.protocoltests.restjson
44

55
use aws.api#service
6+
use aws.auth#sigv4
67
use aws.protocols#restJson1
78
use smithy.test#httpRequestTests
89
use smithy.test#httpResponseTests
910

1011
/// A REST JSON service that sends JSON requests and responses.
1112
@service(sdkId: "Rest Json Protocol")
13+
@sigv4(name: "restjson")
1214
@restJson1
15+
@title("Sample Rest Json Protocol Service")
1316
service RestJson {
1417
version: "2019-12-16",
1518
// Ensure that generators are able to handle renames.

smithy-aws-protocol-tests/model/restXml/main.smithy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ $version: "2.0"
33
namespace aws.protocoltests.restxml
44

55
use aws.api#service
6+
use aws.auth#sigv4
67
use aws.protocols#restXml
78
use smithy.test#httpRequestTests
89
use smithy.test#httpResponseTests
910

1011
/// A REST XML service that sends XML requests and responses.
1112
@service(sdkId: "Rest Xml Protocol")
13+
@sigv4(name: "restxml")
1214
@restXml
15+
@title("Sample Rest Xml Protocol Service")
1316
service RestXml {
1417
version: "2019-12-16",
1518
operations: [

smithy-aws-protocol-tests/model/restXmlWithNamespace/main.smithy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ $version: "2.0"
33
namespace aws.protocoltests.restxml.xmlns
44

55
use aws.api#service
6+
use aws.auth#sigv4
67
use aws.protocols#restXml
78
use smithy.test#httpRequestTests
89
use smithy.test#httpResponseTests
@@ -15,8 +16,10 @@ use smithy.test#httpResponseTests
1516
///
1617
/// See https://github.com/awslabs/smithy/issues/616
1718
@service(sdkId: "Rest Xml Protocol Namespace")
19+
@sigv4(name: "restxmlwithnamespace")
1820
@xmlNamespace(uri: "https://example.com")
1921
@restXml
22+
@title("Sample Rest Xml Protocol Service With Namespace")
2023
service RestXmlWithNamespace {
2124
version: "2019-12-16",
2225
operations: [SimpleScalarProperties]

0 commit comments

Comments
 (0)