Hi everyone. I am new with Wiremock, and I am tryi...
# help
n
Hi everyone. I am new with Wiremock, and I am trying to deploy it at K8s cluster using the https://github.com/wiremock/helm-charts, but I am facing a weird behavior, when I deploy it, in the __files and mapping folders, I have some 'backups' or 'symbolic links' create dynamically (I don't know where) that cause that in the __admin/mapping endpoint I see the same mapping 3 times These are the options used in the deployment to run Wiremock
WIREMOCK_OPTIONS:  --port=9021 --max-request-journal=1000 --local-response-templating --root-dir=/home/wiremock/enatrec
and although in the mapping config map I only have one mapping
Copy code
Data
====
mapping_3.json:
----
{
  "request": {
      "method": "POST",
      "url": "/v1/holaquetal"
  },
  "response":{
    "status":200,
    "bodyFileName":"responses/response_3.json",
    "headers":{
       "Content-Type":"application/json"
    }
 }
}
When I invoke the __admin/mappings end point I have
Copy code
{
  "mappings": [
    {
      "id": "aeb3ec07-d9e6-4c78-904c-f0da07549554",
      "request": {
        "url": "/v1/holaquetal",
        "method": "POST"
      },
      "response": {
        "status": 200,
        "bodyFileName": "responses/response_3.json",
        "headers": {
          "Content-Type": "application/json"
        }
      },
      "uuid": "aeb3ec07-d9e6-4c78-904c-f0da07549554"
    },
    {
      "id": "5b9e486c-287a-4d27-89bc-512c02811cd9",
      "request": {
        "url": "/v1/holaquetal",
        "method": "POST"
      },
      "response": {
        "status": 200,
        "bodyFileName": "responses/response_3.json",
        "headers": {
          "Content-Type": "application/json"
        }
      },
      "uuid": "5b9e486c-287a-4d27-89bc-512c02811cd9"
    },
    {
      "id": "22ac3167-f81f-4b5d-a9d3-56894df0de6e",
      "request": {
        "url": "/v1/holaquetal",
        "method": "POST"
      },
      "response": {
        "status": 200,
        "bodyFileName": "responses/response_3.json",
        "headers": {
          "Content-Type": "application/json"
        }
      },
      "uuid": "22ac3167-f81f-4b5d-a9d3-56894df0de6e"
    }
  ],
  "meta": {
    "total": 3
  }
}
and in the pod, in the container, I can see that I have some weird folders at mapping folder
Copy code
total 12
drwxr-xr-x 3 root root 4096 Jun  3 15:33 ./
drwxrwxrwx 3 root root 4096 Jun  3 15:33 ../
drwxr-xr-x 2 root root 4096 Jun  3 15:33 ..2024_06_03_15_33_04.3477261883/
lrwxrwxrwx 1 root root   32 Jun  3 15:33 ..data -> ..2024_06_03_15_33_04.3477261883/
lrwxrwxrwx 1 root root   21 Jun  3 15:33 mapping_3.json -> ..data/mapping_3.json