Skip to content

Commit

Permalink
Fix several protocol test warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kstich committed Sep 24, 2024
1 parent 480be03 commit ef25d2d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ apply TestGetNoPayload @httpRequestTests([
/// These tests are to ensure we do not attach a body or related headers
/// (Content-Type) to a POST operation with no modeled payload.
///
@readonly
@http(uri: "/no_payload", method: "POST")
operation TestPostNoPayload {
input: TestNoPayloadInputOutput,
Expand Down Expand Up @@ -363,7 +362,6 @@ apply TestGetNoInputNoPayload @httpRequestTests([
/// These tests are to ensure we do not attach a body or related headers
/// (Content-Type) to a POST operation with no modeled input.
///
@readonly
@http(uri: "/no_input_no_payload", method: "POST")
operation TestPostNoInputNoPayload {
output: TestNoPayloadInputOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ enum StringEnum {
code: 200
}
])
@suppress(["UnstableTrait"])
@httpMalformedRequestTests([
{
id: "RestJsonStringPayloadNoContentType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use smithy.test#httpRequestTests

/// The example tests how servers must support requests
/// containing a `Content-Type` header with parameters.
@idempotent
@http(uri: "/ContentTypeParameters", method: "PUT")
operation ContentTypeParameters {
input: ContentTypeParametersInput,
Expand Down

0 comments on commit ef25d2d

Please sign in to comment.