i'm trying to use wiremock to facilitate mocking a...
# help
t
i'm trying to use wiremock to facilitate mocking a variety external apis in tests via recordings/replay (something like ruby's vcr library). what would be the simplest set of wiremock extensions (or better yet, built-in functionality) to capture and pass something like a uuid through a sequence of requests obtained via recording, such that the recording can be played back in a uuid-independent way. would a
StubRequestFilterV2
be suitable for doing something like this? one that re-writes the body the of the requests using information passed to the transformers via the specific test? (oops posted in the wrong spot, also details in thread)
in a bit more detail, the scenario is something like: • the initial request in the recorded sequence passes the uuid through field A in the json body • this uuid should be passed through other matching references to the uuid in the request sequence • subsequent runs should match and replay the sequence, even if the uuid is different i'm thinking generally that i want to be able to use the uuid from the original recorded request, and declare that the uuid in field A on subsequent runs should be replaced with the recording's original uuid (ergo, the uuid being different on subsequent runs should not fail matching the correct request mappings).