Skip to content

Commit

Permalink
Add UnstableTrait suppressions to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kstich committed Oct 20, 2021
1 parent d01067e commit b45b802
Show file tree
Hide file tree
Showing 28 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use aws.protocols#restJson1
use smithy.test#httpRequestTests

/// This example tests httpChecksumRequired trait
@suppress(["UnstableTrait"])
@httpChecksumRequired
@http(uri: "/HttpChecksumRequired", method: "POST")
operation HttpChecksumRequired {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,13 @@ apply MalformedAcceptWithGenericString @httpMalformedRequestTests([
}
])

@suppress(["UnstableTrait"])
@http(method: "POST", uri: "/MalformedAcceptWithBody")
operation MalformedAcceptWithBody {
output: GreetingStruct
}

@suppress(["UnstableTrait"])
@http(method: "POST", uri: "/MalformedAcceptWithPayload")
operation MalformedAcceptWithPayload {
output: MalformedAcceptWithPayloadInput
Expand All @@ -95,6 +97,7 @@ structure MalformedAcceptWithPayloadInput {
payload: JpegBlob
}

@suppress(["UnstableTrait"])
@http(method: "POST", uri: "/MalformedAcceptWithGenericString")
operation MalformedAcceptWithGenericString {
input: MalformedAcceptWithGenericStringInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedBlob", method: "POST")
operation MalformedBlob {
input: MalformedBlobInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedBoolean/{booleanInPath}", method: "POST")
operation MalformedBoolean {
input: MalformedBooleanInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedByte/{byteInPath}", method: "POST")
operation MalformedByte {
input: MalformedByteInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,17 @@ apply MalformedContentTypeWithGenericString @httpMalformedRequestTests([
}
])

@suppress(["UnstableTrait"])
@http(method: "POST", uri: "/MalformedContentTypeWithoutBody")
operation MalformedContentTypeWithoutBody {}

@suppress(["UnstableTrait"])
@http(method: "POST", uri: "/MalformedContentTypeWithBody")
operation MalformedContentTypeWithBody {
input: GreetingStruct
}

@suppress(["UnstableTrait"])
@http(method: "POST", uri: "/MalformedContentTypeWithPayload")
operation MalformedContentTypeWithPayload {
input: MalformedContentTypeWithPayloadInput
Expand All @@ -126,6 +129,7 @@ structure MalformedContentTypeWithPayloadInput {
payload: JpegBlob
}

@suppress(["UnstableTrait"])
@http(method: "POST", uri: "/MalformedContentTypeWithGenericString")
operation MalformedContentTypeWithGenericString {
input: MalformedContentTypeWithGenericStringInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedDouble/{doubleInPath}", method: "POST")
operation MalformedDouble {
input: MalformedDoubleInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedFloat/{floatInPath}", method: "POST")
operation MalformedFloat {
input: MalformedFloatInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedInteger/{integerInPath}", method: "POST")
operation MalformedInteger {
input: MalformedIntegerInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedList", method: "POST")
operation MalformedList {
input: MalformedListInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedLong/{longInPath}", method: "POST")
operation MalformedLong {
input: MalformedLongInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedMap", method: "POST")
operation MalformedMap {
input: MalformedMapInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedRequestBody", method: "POST")
operation MalformedRequestBody {
input: MalformedRequestBodyInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedSet", method: "POST")
operation MalformedSet {
input: MalformedSetInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedShort/{shortInPath}", method: "POST")
operation MalformedShort {
input: MalformedShortInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedString", method: "POST")
operation MalformedString {
input: MalformedStringInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedTimestampBodyDefault", method: "POST")
operation MalformedTimestampBodyDefault {
input: MalformedTimestampBodyDefaultInput
}

@suppress(["UnstableTrait"])
@http(uri: "/MalformedTimestampBodyDateTime", method: "POST")
operation MalformedTimestampBodyDateTime {
input: MalformedTimestampBodyDateTimeInput
}

@suppress(["UnstableTrait"])
@http(uri: "/MalformedTimestampBodyHttpDate", method: "POST")
operation MalformedTimestampBodyHttpDate {
input: MalformedTimestampBodyHttpDateInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedTimestampHeaderDefault", method: "POST")
operation MalformedTimestampHeaderDefault {
input: MalformedTimestampHeaderDefaultInput
}

@suppress(["UnstableTrait"])
@http(uri: "/MalformedTimestampHeaderDateTime", method: "POST")
operation MalformedTimestampHeaderDateTime {
input: MalformedTimestampHeaderDateTimeInput
}

@suppress(["UnstableTrait"])
@http(uri: "/MalformedTimestampHeaderEpoch", method: "POST")
operation MalformedTimestampHeaderEpoch {
input: MalformedTimestampHeaderEpochInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedTimestampPathDefault/{timestamp}", method: "POST")
operation MalformedTimestampPathDefault {
input: MalformedTimestampPathDefaultInput
}

@suppress(["UnstableTrait"])
@http(uri: "/MalformedTimestampPathHttpDate/{timestamp}", method: "POST")
operation MalformedTimestampPathHttpDate {
input: MalformedTimestampPathHttpDateInput
}

@suppress(["UnstableTrait"])
@http(uri: "/MalformedTimestampPathEpoch/{timestamp}", method: "POST")
operation MalformedTimestampPathEpoch {
input: MalformedTimestampPathEpochInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedTimestampQueryDefault", method: "POST")
operation MalformedTimestampQueryDefault {
input: MalformedTimestampQueryDefaultInput
}

@suppress(["UnstableTrait"])
@http(uri: "/MalformedTimestampQueryHttpDate", method: "POST")
operation MalformedTimestampQueryHttpDate {
input: MalformedTimestampQueryHttpDateInput
}

@suppress(["UnstableTrait"])
@http(uri: "/MalformedTimestampQueryEpoch", method: "POST")
operation MalformedTimestampQueryEpoch {
input: MalformedTimestampQueryEpochInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ namespace aws.protocoltests.restjson
use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests

@suppress(["UnstableTrait"])
@http(uri: "/MalformedUnion", method: "POST")
operation MalformedUnion {
input: MalformedUnionInput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests
use smithy.framework#ValidationException

@suppress(["UnstableTrait"])
@http(uri: "/MalformedEnum", method: "POST")
operation MalformedEnum {
input: MalformedEnumInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,21 @@ use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests
use smithy.framework#ValidationException

@suppress(["UnstableTrait"])
@http(uri: "/MalformedLength", method: "POST")
operation MalformedLength {
input: MalformedLengthInput,
errors: [ValidationException]
}

@suppress(["UnstableTrait"])
@http(uri: "/MalformedLengthOverride", method: "POST")
operation MalformedLengthOverride {
input: MalformedLengthOverrideInput,
errors: [ValidationException]
}

@suppress(["UnstableTrait"])
@http(uri: "/MalformedLengthQueryString", method: "POST")
operation MalformedLengthQueryString {
input: MalformedLengthQueryStringInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests
use smithy.framework#ValidationException

@suppress(["UnstableTrait"])
@http(uri: "/MalformedPattern", method: "POST")
operation MalformedPattern {
input: MalformedPatternInput,
errors: [ValidationException]
}

@suppress(["UnstableTrait"])
@http(uri: "/MalformedPatternOverride", method: "POST")
operation MalformedPatternOverride {
input: MalformedPatternOverrideInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests
use smithy.framework#ValidationException

@suppress(["UnstableTrait"])
@http(uri: "/MalformedRange", method: "POST")
operation MalformedRange {
input: MalformedRangeInput,
errors: [ValidationException]
}

@suppress(["UnstableTrait"])
@http(uri: "/MalformedRangeOverride", method: "POST")
operation MalformedRangeOverride {
input: MalformedRangeOverrideInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests
use smithy.framework#ValidationException

@suppress(["UnstableTrait"])
@http(uri: "/MalformedRequired", method: "POST")
operation MalformedRequired {
input: MalformedRequiredInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use smithy.test#httpMalformedRequestTests
use smithy.test#httpRequestTests
use smithy.framework#ValidationException

@suppress(["UnstableTrait"])
@http(uri: "/RecursiveStructures", method: "POST")
operation RecursiveStructures {
input: RecursiveStructuresInput,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use aws.protocols#restJson1
use smithy.test#httpMalformedRequestTests
use smithy.framework#ValidationException

@suppress(["UnstableTrait"])
@http(uri: "/SensitiveValidation", method: "POST")
operation SensitiveValidation {
input: SensitiveValidationInput,
Expand Down

0 comments on commit b45b802

Please sign in to comment.