Rajesh Narayanappa
03/21/2023, 3:49 AMusingFilesUnderDirectory
method to save all files in different path. We observed for responses over 2MB response body was null. On further debugging, we found bigger size responses are going into this method - <https://github.com/wiremock/wiremock/blob/master/src/main/java/com/github/tomakehurst/wiremock/recording/SnapshotStubMappingPostProcessor.java#L61>
. and here rootDirectory is not path given at ``usingFilesUnderDirectory` method.
Suspected bug could be at this level as this looks for constant path which is __files
and not user provided path. Looks like this is bug. Please confirm.
Pre-cond:
• response size is >2MB
To overcome this issue, we have extended default bodyTextsize to make sure size condition is not met.Mohamed Amine BERGUIGA
03/21/2023, 10:21 AMLeon Witznick Schumacher
03/21/2023, 9:14 PMLeon Witznick Schumacher
03/21/2023, 9:14 PMLeon Witznick Schumacher
03/21/2023, 9:14 PMJorge Meireles
03/21/2023, 9:40 PMPalak
03/22/2023, 1:50 PMRania Zouari
03/22/2023, 3:43 PMVasu
03/22/2023, 4:12 PMRohit Manmath Binjagermath
03/23/2023, 5:20 AMRamya Vedagiri
03/23/2023, 9:36 AMTomas Belda
03/23/2023, 3:23 PMTom
03/23/2023, 4:56 PMPreethu Kg
03/23/2023, 9:53 PMOleg Nenashev
03/24/2023, 1:28 PMMikeismynick Smith
03/25/2023, 9:51 AMMikeismynick Smith
03/25/2023, 9:52 AMOleg Nenashev
03/25/2023, 11:32 AMsidi amine bouhamidi
03/26/2023, 9:02 PM{{now}}
. I looked everywhere to find out how to activate it. Could you please help me?
• How I start the container :
docker run -itd --rm -p 9000:8080 --name wiremock -v $PWD/mocks:/home/wiremock wiremock/wiremock
• My Stub in $PWD/mocks/stub-get-session-200.json
{
"request": {
"method": "GET",
"url": "/api/v1/session"
},
"response": {
"status": 200,
"jsonBody": {
"expiresAt": "{{now offset='900 seconds'}}"
},
"transformers": [
"response-template"
],
"headers": {
"Content-Type": "application/json"
}
}
}
• The response when I call the API <http://localhost:9000/api/v1/session>
{
"expiresAt": "{{now offset='900 seconds'}}"
}
Albert Vesker
03/27/2023, 2:43 PMAlbert Vesker
03/27/2023, 2:44 PMSteve Teplica
03/28/2023, 4:58 PM-Dhttp.proxyHost=localhost
-Dhttp.proxyPort=1080
-Dhttp.nonProxyHosts=
I am starting a local WireMock server with http port 1080. The spring application is definitely routing requests through the designated proxy, but my WireMock server is not forwarding these requests to their destination.
My goal is to have WireMock return stubs if there is a mapping match, otherwise forward the request to its destination and log the forwarded request.
Is WireMock able to act as a proxy server in this way?
I am using wiremock-jre8-standalone
2.35.0. The WireMock Proxy docs mentions a WireMockServer option passThroughProxy(Boolean)
(which it says defaults to “true”), which sounds exactly like what I want. But I don’t see this option available on this version of WireMock.Tom
03/28/2023, 5:01 PMKarol Dowbecki
03/28/2023, 6:20 PMrohit kamble
03/28/2023, 7:39 PMrohit kamble
03/28/2023, 7:53 PMZak Ismail
03/29/2023, 12:20 PMTom
03/29/2023, 7:05 PMManojkumar Kasiviswanathan
03/30/2023, 8:47 AMShlomy Sheps
03/30/2023, 9:08 AMwiremock.verifyThat(times, postRequestedFor(urlEqualTo(path)));
getting
{
"errors": [
{
"code": 10,
"source": {
"pointer": "/"
},
"title": "Error parsing JSON",
"detail": "Cannot construct instance of `com.github.tomakehurst.wiremock.common.Errors` (although at least one Creator exists): no int/Int-argument constructor/factory method to deserialize from Number value (404)"
}
]
}