https://linen.dev logo
a

Adam Wojszczyk

09/08/2023, 12:00 PM
Hi, I've just started using Wiremock to proxy requests to other services and record mappings for playback and I noticed that insertionIndex is in reverse order. For example there are 5 requests. Request 1 has index 5 and Request 5 has index 1. Is it by design? Can I save mappings by myself with reserved index without breaking playback? What I want to achieve is to have mappings files' names starting with request number to intuitively go through history from file 1 not for example 15. Of course I set
.filenameTemplate("{{{insertionIndex}}}.json")
wiremock 3.0.3
I've also noticed there is a possibility to set metadata to stubs, maybe this way I could achieve that if index ordering works as it should.
b

Brandon Trautmann

09/08/2023, 1:45 PM
At first glance it sounds like that may be related to this: https://github.com/wiremock/wiremock/issues/2364
a

Adam Wojszczyk

09/08/2023, 2:27 PM
There is no repeated requests in my case for now.
b

Brandon Trautmann

09/08/2023, 2:27 PM
Yeah I didn’t mean it’s the same issue but rather that they may have the same root cause
👍 1
a

Adam Wojszczyk

09/08/2023, 2:44 PM
I've added my comment there. Thanks for reporting.