Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more traits to protocol test services #2117

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions smithy-aws-protocol-tests/model/awsJson1_0/main.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ $version: "2.0"
namespace aws.protocoltests.json10

use aws.api#service
use aws.auth#sigv4
use aws.protocols#awsJson1_0
use smithy.test#httpRequestTests
use smithy.test#httpResponseTests

@service(sdkId: "JSON RPC 10")
@sigv4(name: "jsonrpc10")
@awsJson1_0
@title("Sample Json 1.0 Protocol Service")
service JsonRpc10 {
version: "2020-07-14",
operations: [
Expand Down
3 changes: 3 additions & 0 deletions smithy-aws-protocol-tests/model/awsQuery/main.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@ $version: "2.0"
namespace aws.protocoltests.query

use aws.api#service
use aws.auth#sigv4
use aws.protocols#awsQuery
use smithy.test#httpRequestTests
use smithy.test#httpResponseTests

/// A query service that sends query requests and XML responses.
@service(sdkId: "Query Protocol")
@sigv4(name: "awsquery")
@awsQuery
@xmlNamespace(uri: "https://example.com/")
@title("Sample Query Protocol Service")
service AwsQuery {
version: "2020-01-08",
operations: [
Expand Down
4 changes: 4 additions & 0 deletions smithy-aws-protocol-tests/model/ec2Query/main.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,18 @@ $version: "2.0"
namespace aws.protocoltests.ec2

use aws.api#service
use aws.auth#sigv4
use aws.protocols#ec2Query
use smithy.test#httpRequestTests
use smithy.test#httpResponseTests

/// An EC2 query service that sends query requests and XML responses.
@service(sdkId: "EC2 Protocol")
@suppress(["SigV4Traits"])
@sigv4(name: "ec2query")
@ec2Query
@xmlNamespace(uri: "https://example.com/")
@title("Sample Ec2 Protocol Service")
service AwsEc2 {
version: "2020-01-08",
operations: [
Expand Down
3 changes: 3 additions & 0 deletions smithy-aws-protocol-tests/model/restJson1/main.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ $version: "2.0"
namespace aws.protocoltests.restjson

use aws.api#service
use aws.auth#sigv4
use aws.protocols#restJson1
use smithy.test#httpRequestTests
use smithy.test#httpResponseTests

/// A REST JSON service that sends JSON requests and responses.
@service(sdkId: "Rest Json Protocol")
@sigv4(name: "restjson")
@restJson1
@title("Sample Rest Json Protocol Service")
service RestJson {
version: "2019-12-16",
// Ensure that generators are able to handle renames.
Expand Down
3 changes: 3 additions & 0 deletions smithy-aws-protocol-tests/model/restXml/main.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ $version: "2.0"
namespace aws.protocoltests.restxml

use aws.api#service
use aws.auth#sigv4
use aws.protocols#restXml
use smithy.test#httpRequestTests
use smithy.test#httpResponseTests

/// A REST XML service that sends XML requests and responses.
@service(sdkId: "Rest Xml Protocol")
@sigv4(name: "restxml")
@restXml
@title("Sample Rest Xml Protocol Service")
service RestXml {
version: "2019-12-16",
operations: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ $version: "2.0"
namespace aws.protocoltests.restxml.xmlns

use aws.api#service
use aws.auth#sigv4
use aws.protocols#restXml
use smithy.test#httpRequestTests
use smithy.test#httpResponseTests
Expand All @@ -15,8 +16,10 @@ use smithy.test#httpResponseTests
///
/// See https://github.com/awslabs/smithy/issues/616
@service(sdkId: "Rest Xml Protocol Namespace")
@sigv4(name: "restxmlwithnamespace")
@xmlNamespace(uri: "https://example.com")
@restXml
@title("Sample Rest Xml Protocol Service With Namespace")
service RestXmlWithNamespace {
version: "2019-12-16",
operations: [SimpleScalarProperties]
Expand Down
Loading