From 7b414683363b5dbeec54b2fbd98fa1143de0aad8 Mon Sep 17 00:00:00 2001 From: fossand Date: Fri, 23 Sep 2022 15:27:54 -0700 Subject: [PATCH] remove aws query compatible protocol test --- .../errors.smithy | 53 ------------------- .../awsJson1_0WithQueryCompatible/main.smithy | 18 ------- 2 files changed, 71 deletions(-) delete mode 100644 smithy-aws-protocol-tests/model/awsJson1_0WithQueryCompatible/errors.smithy delete mode 100644 smithy-aws-protocol-tests/model/awsJson1_0WithQueryCompatible/main.smithy diff --git a/smithy-aws-protocol-tests/model/awsJson1_0WithQueryCompatible/errors.smithy b/smithy-aws-protocol-tests/model/awsJson1_0WithQueryCompatible/errors.smithy deleted file mode 100644 index ccc4b708718..00000000000 --- a/smithy-aws-protocol-tests/model/awsJson1_0WithQueryCompatible/errors.smithy +++ /dev/null @@ -1,53 +0,0 @@ -$version: "2.0" - -namespace aws.protocoltests.json10 - -use aws.protocols#awsJson1_0 -use aws.protocols#awsQueryError -use smithy.test#httpRequestTests -use smithy.test#httpResponseTests - -@idempotent -operation GreetingWithError { - input: GreetingWithErrorInput, - output: GreetingWithErrorOutput, - errors: [InvalidGreetingError] -} - -@input -structure GreetingWithErrorInput { - greeting: String, -} - -@output -structure GreetingWithErrorOutput { - greeting: String, -} - -@awsQueryError( - code: "CustomGreetingErrorCode", - httpResponseCode: 402 -) -@error("client") -structure InvalidGreetingError { - Message: String, -} - -apply InvalidGreeting @httpResponseTests([ - { - id: "Json10WithQueryCompatibleGreetingError", - documentation: "@awsQueryCompatible trait is applied to service", - protocol: awsJson1_0, - params: { - Message: "Hi" - }, - code: 402, - headers: { - "Content-Type": "application/x-amz-json-1.0", - "x-amzn-query-error": "CustomGreetingErrorCode;Sender" - }, - bodyMediaType: "application/json", - body: "{\"__type\": \"InvalidGreetingError\",\"Message\": \"Hi\"}", - appliesTo: "client" - }, -]) diff --git a/smithy-aws-protocol-tests/model/awsJson1_0WithQueryCompatible/main.smithy b/smithy-aws-protocol-tests/model/awsJson1_0WithQueryCompatible/main.smithy deleted file mode 100644 index 5ca7d211c30..00000000000 --- a/smithy-aws-protocol-tests/model/awsJson1_0WithQueryCompatible/main.smithy +++ /dev/null @@ -1,18 +0,0 @@ -$version: "2.0" - -namespace aws.protocoltests.json10 - -use aws.api#service -use aws.protocols#awsJson1_0 -use aws.protocols#awsQueryCompatible -use smithy.test#httpRequestTests -use smithy.test#httpResponseTests - - -@service(sdkId: "JSON RPC 10 with Query Compatible Trait") -@awsQueryCompatible -@awsJson1_0 -service JsonRpc10WithQueryCompatible { - version: "2020-07-14", - operations: [GreetingWithErrors] -}