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

Fix several protocol test warnings #2404

Merged
merged 1 commit into from
Sep 24, 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
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
Loading