Loading .changelog/1747668519.md 0 → 100644 +13 −0 Original line number Diff line number Diff line --- applies_to: - aws-sdk-rust - client authors: - aajtodd references: - smithy-rs#4135 breaking: false new_feature: false bug_fix: true --- fix simple rules behavior with `RuleMode::MatchAny` .changelog/1747668565.md 0 → 100644 +27 −0 Original line number Diff line number Diff line --- applies_to: - client - aws-sdk-rust authors: - aajtodd references: - smithy-rs#4135 breaking: false new_feature: true bug_fix: false --- Introduce a new `repeatedly()` function to `aws-smithy-mocks` sequence builder to build mock rules that behave as an infinite sequence. ```rust let rule = mock!(aws_sdk_s3::Client::get_object) .sequence() .http_status(503, None) .times(2) // repeat the last output twice before moving onto the next response in the sequence .output(|| GetObjectOutput::builder() .body(ByteStream::from_static(b"success")) .build() ) .repeatedly() // repeat the last output forever .build(); ``` aws/rust-runtime/Cargo.lock +1 −1 Original line number Diff line number Diff line Loading @@ -189,7 +189,7 @@ version = "0.60.3" [[package]] name = "aws-sigv4" version = "1.3.1" version = "1.3.2" dependencies = [ "aws-credential-types", "aws-smithy-eventstream", Loading aws/rust-runtime/aws-config/Cargo.lock +2 −2 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "aws-config" version = "1.6.2" version = "1.6.3" dependencies = [ "aws-credential-types", "aws-runtime", Loading Loading @@ -202,7 +202,7 @@ dependencies = [ [[package]] name = "aws-sigv4" version = "1.3.1" version = "1.3.2" dependencies = [ "aws-credential-types", "aws-smithy-http", Loading rust-runtime/Cargo.lock +1 −1 Original line number Diff line number Diff line Loading @@ -543,7 +543,7 @@ dependencies = [ [[package]] name = "aws-smithy-mocks" version = "0.1.0" version = "0.1.1" dependencies = [ "aws-smithy-async", "aws-smithy-http-client", Loading Loading
.changelog/1747668519.md 0 → 100644 +13 −0 Original line number Diff line number Diff line --- applies_to: - aws-sdk-rust - client authors: - aajtodd references: - smithy-rs#4135 breaking: false new_feature: false bug_fix: true --- fix simple rules behavior with `RuleMode::MatchAny`
.changelog/1747668565.md 0 → 100644 +27 −0 Original line number Diff line number Diff line --- applies_to: - client - aws-sdk-rust authors: - aajtodd references: - smithy-rs#4135 breaking: false new_feature: true bug_fix: false --- Introduce a new `repeatedly()` function to `aws-smithy-mocks` sequence builder to build mock rules that behave as an infinite sequence. ```rust let rule = mock!(aws_sdk_s3::Client::get_object) .sequence() .http_status(503, None) .times(2) // repeat the last output twice before moving onto the next response in the sequence .output(|| GetObjectOutput::builder() .body(ByteStream::from_static(b"success")) .build() ) .repeatedly() // repeat the last output forever .build(); ```
aws/rust-runtime/Cargo.lock +1 −1 Original line number Diff line number Diff line Loading @@ -189,7 +189,7 @@ version = "0.60.3" [[package]] name = "aws-sigv4" version = "1.3.1" version = "1.3.2" dependencies = [ "aws-credential-types", "aws-smithy-eventstream", Loading
aws/rust-runtime/aws-config/Cargo.lock +2 −2 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" [[package]] name = "aws-config" version = "1.6.2" version = "1.6.3" dependencies = [ "aws-credential-types", "aws-runtime", Loading Loading @@ -202,7 +202,7 @@ dependencies = [ [[package]] name = "aws-sigv4" version = "1.3.1" version = "1.3.2" dependencies = [ "aws-credential-types", "aws-smithy-http", Loading
rust-runtime/Cargo.lock +1 −1 Original line number Diff line number Diff line Loading @@ -543,7 +543,7 @@ dependencies = [ [[package]] name = "aws-smithy-mocks" version = "0.1.0" version = "0.1.1" dependencies = [ "aws-smithy-async", "aws-smithy-http-client", Loading