Thinking of a workflow for testing REST API clients where you snapshot responses to requests made in tests and use the snapshot for a mocked response later.
Is there anything out there to help with that in @rustlang ?
Some kind of insta+mockito mashup?
-
-
This certainly looks to be in the neighborhood, yes! Specifically the section on snapshotting. To be able to run through a series of requests then "bake" the responses for future runs of the test suite is what I'm after.
-
One concern: it would be very nice if the snapshot data was recorded in such a way that it could be sanitized to remove certain things like API keys or other identifying info if used to match against incoming reqs. The section: "customizing your recordings" seems to cover this.
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Writing about stuff to learn how it works, mostly in Rust.
Lead Engineer at
Are you looking for something similar to the "playback" functionality in the original Java WireMock?