André Martins
02/27/2024, 4:00 PM{
"request": {
"method": "GET",
"urlPath": "/test/img"
},
"response": {
"status": 200,
"bodyFileName": "wiremock.png"
},
"metadata": {
"name": "file-stub"
}
}
And I have the wiremock.png
file in __files
folder. Although its not working when I request <http://localhost:8080/test/img>
in my browser.
Any ideias? I'm using latest wiremock docker image
Thanks in advance ✌️André Martins
02/27/2024, 4:12 PMLee Turner
02/27/2024, 5:40 PMLee Turner
02/27/2024, 5:41 PMLee Turner
02/27/2024, 6:40 PMTom
02/27/2024, 9:34 PMimage/png
in a case like this, otherwise the browser won’t realise it’s an imageLee Turner
02/27/2024, 9:36 PMAndré Martins
02/28/2024, 9:57 AMAndré Martins
02/28/2024, 9:58 AMAndré Martins
02/28/2024, 10:01 AMAndré Martins
02/28/2024, 10:05 AMLee Turner
02/28/2024, 10:05 AM--global-response-templating
startup parameter. Depending on the image you are using it could be trying to interpret it as a handlebars templateTom
02/28/2024, 10:05 AM--global-response-templating
with images as it’ll try to resolve the image content as if it’s a template.André Martins
02/28/2024, 10:06 AMAndré Martins
02/28/2024, 10:06 AMLee Turner
02/28/2024, 10:06 AMAndré Martins
02/28/2024, 10:06 AMTom
02/28/2024, 10:06 AMAndré Martins
02/28/2024, 10:06 AMTom
02/28/2024, 10:06 AM"transformers": ["response-template"]
to your stub responseAndré Martins
02/28/2024, 10:06 AMTom
02/28/2024, 10:07 AMLee Turner
02/28/2024, 10:07 AMAndré Martins
02/28/2024, 10:08 AM"transformers": []
work?Tom
02/28/2024, 10:08 AMTom
02/28/2024, 10:08 AMTom
02/28/2024, 10:08 AMAndré Martins
02/28/2024, 10:10 AMAndré Martins
02/28/2024, 10:10 AMdisableBodyFileTemplating: true
André Martins
02/28/2024, 10:11 AMTom
02/28/2024, 10:11 AMTom
02/28/2024, 10:11 AMAndré Martins
02/28/2024, 10:12 AM