Skip to content

Commit ef25d2d

Browse files
committed
Fix several protocol test warnings
1 parent 480be03 commit ef25d2d

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

smithy-aws-protocol-tests/model/restJson1/http-content-type.smithy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,6 @@ apply TestGetNoPayload @httpRequestTests([
283283
/// These tests are to ensure we do not attach a body or related headers
284284
/// (Content-Type) to a POST operation with no modeled payload.
285285
///
286-
@readonly
287286
@http(uri: "/no_payload", method: "POST")
288287
operation TestPostNoPayload {
289288
input: TestNoPayloadInputOutput,
@@ -363,7 +362,6 @@ apply TestGetNoInputNoPayload @httpRequestTests([
363362
/// These tests are to ensure we do not attach a body or related headers
364363
/// (Content-Type) to a POST operation with no modeled input.
365364
///
366-
@readonly
367365
@http(uri: "/no_input_no_payload", method: "POST")
368366
operation TestPostNoInputNoPayload {
369367
output: TestNoPayloadInputOutput

smithy-aws-protocol-tests/model/restJson1/http-string-payload.smithy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ enum StringEnum {
7171
code: 200
7272
}
7373
])
74+
@suppress(["UnstableTrait"])
7475
@httpMalformedRequestTests([
7576
{
7677
id: "RestJsonStringPayloadNoContentType",

smithy-aws-protocol-tests/model/restXml/content-type.smithy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use smithy.test#httpRequestTests
1010

1111
/// The example tests how servers must support requests
1212
/// containing a `Content-Type` header with parameters.
13+
@idempotent
1314
@http(uri: "/ContentTypeParameters", method: "PUT")
1415
operation ContentTypeParameters {
1516
input: ContentTypeParametersInput,

0 commit comments

Comments
 (0)