https://linen.dev logo
#help
Title
# help
b

Brandon Trautmann

09/08/2023, 6:20 PM
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

Adam Wojszczyk

09/09/2023, 7:12 AM
Maybe try saving stubs mapping by yourself with modification of insertionIndex, just reverse the order. That was my idea for a workaround.
b

Brandon Trautmann

09/09/2023, 2:06 PM
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

Adam Wojszczyk

09/09/2023, 2:33 PM
Snapshot returns list of mappings which you could modify and save by yourself. Maybe I don't understand something but it looked promising.