lundi 24 juillet 2017

Wiremock: Record / Playback ignoring one section of the request body.

I'm using the Standalone Wiremock runner to try and mappings to an external API for use in our local integration testing.

The problem is that the request contains a SOAP time-stamp, which changes with each request, meaning that Wiremock cannot find the correct mapping. It does however notify us that it found the request as a "close match", but doesn't send the response back to our service.

I guess the best way to do this would be to tell Wiremock to match the exact request ignoring the time-stamp, but I can't find any way to do this simply.

Aucun commentaire:

Enregistrer un commentaire