Skip to content

Commit

Permalink
Add test case for requestChecksumRequired=false
Browse files Browse the repository at this point in the history
  • Loading branch information
gosar committed Sep 20, 2024
1 parent 0b9ffc4 commit 6c22a82
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
[SUPPRESSED] smithy.example#NoOutputForResponse: This shape applies a trait that is unstable: aws.protocols#httpChecksum | UnstableTrait
[SUPPRESSED] smithy.example#NoResponseAlgorithms: This shape applies a trait that is unstable: aws.protocols#httpChecksum | UnstableTrait
[ERROR] smithy.example#NoBehavior: The `httpChecksum` trait must define at least one of the `request` or `response` checksum behaviors. | HttpChecksumTrait
[ERROR] smithy.example#NoBehaviorRequestChecksumRequiredFalse: The `httpChecksum` trait must define at least one of the `request` or `response` checksum behaviors. | HttpChecksumTrait
[ERROR] smithy.example#NoModeForResponse: The `httpChecksum` trait must model the `requestValidationModeMember` property to support response checksum behavior. | HttpChecksumTrait
[ERROR] smithy.example#NoResponseAlgorithms: The `httpChecksum` trait must model the `responseAlgorithms` property to support response checksum behavior. | HttpChecksumTrait
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ operation NoBehavior {
@input
structure NoBehaviorInput {}

@httpChecksum(
requestChecksumRequired: false,
)
@suppress(["UnstableTrait"])
operation NoBehaviorRequestChecksumRequiredFalse {
input: NoBehaviorRequestChecksumRequiredFalseInput,
output: Unit
}

@input
structure NoBehaviorRequestChecksumRequiredFalseInput {}

@httpChecksum(
requestChecksumRequired: true,
)
Expand Down

0 comments on commit 6c22a82

Please sign in to comment.