testingwiremockwiremock-standalone

Why does WireMock return a binary file with changes?


I have a stub with the following description: in the image. wiremock stub in postman The bodyFileName is set to response.bin, which WireMock should return. However, for some reason, WireMock returns a file that differs in size and content, being larger. Comparison of original bin and Wiremock response What could be causing this? What should I do to make WireMock return the original response.bin without changes?

"I tried removing fixedDelayMilliseconds and setting chunkedDribbleDelay to 0


Solution

  • I solved the problem with a workaround. The binary file must be base64 encoded and the wiremock must use base64body.