Natalia
06/03/2024, 4:09 PMWIREMOCK_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
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
{
"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
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