Closed anandbibek closed 2 months ago
Hey @anandbibek that's because hoverfly-java DSL doesn't support bodyFile
yet. I can look into it.
This commit should fix it: https://github.com/SpectoLabs/hoverfly-java/commit/784de025f959fb1cd0954fbdd47ab8ece225219e
Description of the bug
I'm trying to make hoverfly respond with a zip file. But unable to do so in DSL java.
Steps to reproduce the issue
I can serve a binary file ( zip ) via simulation file with following approach
However, the same is not possible via Java DSL code. My code looks like this:
Observed result
The problem is that the returned data is no longer valid and zip file can not be constructed correctly out of it.
Expected result
Hoverfly should return valid zip file data.
Additional relevant information