Unverified Commit 9d2e1543 authored by Landon James's avatar Landon James Committed by GitHub
Browse files

Merge branch 'main' into landonxjames/crc-feature

parents 1c57b3cf 5bbf0a18
Loading
Loading
Loading
Loading
+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`
+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();
```
+1 −1
Original line number Diff line number Diff line
@@ -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",
+2 −2
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"

[[package]]
name = "aws-config"
version = "1.6.2"
version = "1.6.3"
dependencies = [
 "aws-credential-types",
 "aws-runtime",
@@ -202,7 +202,7 @@ dependencies = [

[[package]]
name = "aws-sigv4"
version = "1.3.1"
version = "1.3.2"
dependencies = [
 "aws-credential-types",
 "aws-smithy-http",
+1 −1
Original line number Diff line number Diff line
@@ -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