I am using wiremock to record mappings. I am using proxyBaseUrl, so that when mapping is not there it gets routed to proxy and the request and response is recorded. In my request there are a few timestamp related request object items I want the mapping to ignore. This way when the mapping is created, I already have timestamp
wild carded like \"timestamp\": \"${json-unit.any-string}\"
. My tests create different timestamp, and I want wiremock to ignore those request objects when the mapping is created
When I run tests, there are 100s of mappings created and going through them 1 by 1 and updating them will be painful. So I want to train record-mappings in advance to ignore certain request objects. How can I do it?
{
"priority": 1000000,
"request": {
"method": "POST",
"url": "/v1/computeserv/execution",
},
"response": {
"proxyBaseUrl": "https://actual.computeserv.com:12345"
}
}