-
Hello team, I've been working on updating our code to use a new library, and as part of this process, I've been writing unit tests. I've successfully updated some parts of the codebase, like changing However, I've been having trouble finding the equivalent code for I wonder if these components no longer exist or if they've been moved elsewhere. Could you please help me locate them?
The old code:
With this helper class, I do unit tests like this.
Unless, of course, there is a better way to do all this. Thanks for any help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Ah good question. These were renamed to be a little bit more specific to their functionality: https://docs.rs/aws-smithy-runtime/latest/aws_smithy_runtime/client/http/test_util/struct.StaticReplayClient.html Dyn connector shouldn't be required anymore. You can pass |
Beta Was this translation helpful? Give feedback.
Ah good question. These were renamed to be a little bit more specific to their functionality: https://docs.rs/aws-smithy-runtime/latest/aws_smithy_runtime/client/http/test_util/struct.StaticReplayClient.html
Dyn connector shouldn't be required anymore. You can pass
StaticReplayClient
directly as the argument tohttp_client
. Here's an example from our own tests