Hi everyone, I'm trying to set up a Wiremock stub ...
# help
d
Hi everyone, I'm trying to set up a Wiremock stub using a local docker instance. I did:
Copy code
$ docker run -it --rm \
    -p 8080:8080 \
    --name wiremock \
  -v $PWD:/home/wiremock \
    wiremock/wiremock:3.12.0
And it created both
mappings
and
__files
directories in my
$PWD
. After placing mytest.json with these contents there:
Copy code
{
  "request": {
    "method": "GET",
    "url": "/api/mytest"
  },
  "response": {
    "status": 200,
    "body": "More content\n"
  }
}
and restarting the container, I had expected have the configured response return to me using curl, but it fails after:
Copy code
$ curl <http://localhost:8080/api/mytest>
curl: (56) Recv failure: Connection reset by peer
This is from the introduction at https://wiremock.org/docs/standalone/docker/. Can someone tell me what I'm missing here?