This is actually somewhat of a blocker for us now ...
# help
b
This is actually somewhat of a blocker for us now 😞 https://github.com/wiremock/wiremock/issues/2364 Since we had to disable scenarios, tests that mutate data will always replay the latest request and that means the test will fail on second run because that data will be returned already-mutated 😕
a
Maybe try saving stubs mapping by yourself with modification of insertionIndex, just reverse the order. That was my idea for a workaround.
b
I thought about that, but AFAIK the only way to do this would be a
StubMappingTransformer
and you only get access to 1 stub mapping at a time, so there’d be no way to tell what the correct insertion index is
And there’s no sustainable way to do this manually with our number of API requests/scenarios
a
Snapshot returns list of mappings which you could modify and save by yourself. Maybe I don't understand something but it looked promising.