Vlad Povolotzky
08/29/2023, 5:25 PMOleg Nenashev
08/29/2023, 6:57 PMVlad Povolotzky
08/30/2023, 7:37 AMlifecycle:
preStop:
exec:
command:
- /bin/sh
- -c
- curl -X POST <http://wiremock:8080/__admin/mappings/save>
- rm -rf /data/
- cp -R /home/wiremock/ /data/
postStart:
exec:
command:
- /bin/sh
- -c
- cp -R /data/ /home/wiremock/
- curl -X POST <http://wiremock:8080/__admin/mappings/reset>
Oleg Nenashev
08/30/2023, 10:25 AM/data
?Vlad Povolotzky
08/30/2023, 10:25 AMOleg Nenashev
08/30/2023, 10:27 AMapiVersion: v1
kind: Pod
metadata:
name: wiremock
spec:
containers:
- name: wiremock
image: wiremock/wiremock:2.35.0
volumeMounts:
- name: wiremock-storage
mountPath: /home/wiremock
volumes:
- name: wiremock-storage
emptyDir: {}
Vlad Povolotzky
08/30/2023, 10:30 AMOleg Nenashev
08/30/2023, 10:34 AM/home/wiremock
- yes.Vlad Povolotzky
08/30/2023, 10:36 AM<http://wiremock:8080/__admin/mappings/save>
to save the stubs, right?Oleg Nenashev
08/30/2023, 10:37 AMsave
Vlad Povolotzky
08/30/2023, 10:37 AMOleg Nenashev
08/30/2023, 10:37 AMVlad Povolotzky
08/30/2023, 10:38 AMOleg Nenashev
08/30/2023, 10:41 AM__admin/mappings/save
? https://wiremock.org/docs/stubbing/#saving-stubssave
Vlad Povolotzky
08/30/2023, 10:42 AMOleg Nenashev
08/30/2023, 10:43 AMIllegalArgumentException
with POST, it is a bug. Could you please file one?Vlad Povolotzky
08/30/2023, 10:43 AMOleg Nenashev
08/30/2023, 10:44 AMVlad Povolotzky
08/30/2023, 10:54 AMOleg Nenashev
08/30/2023, 11:03 AMVlad Povolotzky
08/31/2023, 12:35 PMOleg Nenashev
08/31/2023, 12:46 PMVlad Povolotzky
08/31/2023, 12:50 PMOleg Nenashev
08/31/2023, 1:14 PMVlad Povolotzky
08/31/2023, 1:42 PMOleg Nenashev
08/31/2023, 1:42 PMVlad Povolotzky
09/03/2023, 12:58 PM2023-09-03 09:31:57.156 Verbose logging enabled ā
ā ā
ā āā āā āā āāāāāā āāāāāāā āāā āāā āāāāāā āāāāāā āā āā ā
ā āā āā āā āā āā āā āāāā āāāā āā āā āā āā āā ā
ā āā ā āā āā āāāāāā āāāāā āā āāāā āā āā āā āā āāāāā ā
ā āā āāā āā āā āā āā āā āā āā āā āā āā āā āā āā ā
ā āāā āāā āā āā āā āāāāāāā āā āā āāāāāā āāāāāā āā āā ā
ā ā
ā ---------------------------------------------------------------- ā
ā | Cloud: <https://wiremock.io/cloud> | ā
ā | | ā
ā | Slack: <https://slack.wiremock.org> | ā
ā ---------------------------------------------------------------- ā
ā ā
ā port: 8080 ā
ā enable-browser-proxying: false ā
ā disable-banner: false ā
ā no-request-journal: false ā
ā verbose: true ā
ā ā
ā 2023-09-03 09:32:26.244 Admin request received: ā
ā 10.1.64.174 - GET / ā
ā ā
ā Host: [10.1.76.89:8080] ā
ā User-Agent: [kube-probe/1.23+] ā
ā Accept: [*/*] ā
ā Referer: [<http://10.1.76.89:8080/__admin>] ā
ā Connection: [close] ā
ā ā
ā
root@wiremock-0:/home/wiremock/mappings# ll
total 32
drwxr-xr-x 2 root root 4096 Sep 3 13:54 ./
drwxr-xr-x 5 root root 4096 Aug 30 12:44 ../
-rw-r--r-- 1 root root 349 Aug 31 12:26 post-messagingjson-25f1b193-c1a8-4560-b4c9-4a0fa48db818
-rw-r--r-- 1 root root 349 Aug 31 10:58 post-messagingjson-551e7f3b-7fd7-46a5-a3ef-b560c7576b1c
-rw-r--r-- 1 root root 349 Sep 3 06:41 post-messagingjson-cd2d2762-3c96-469f-9d64-ad721921812c
-rw-r--r-- 1 root root 349 Sep 3 13:54 post-messagingjson-d02207ea-70c8-49f1-a4ee-76b504afafcc
-rw-r--r-- 1 root root 289 Aug 31 11:52 post-messagingjson-d518e1b7-910f-4777-a4c2-66ae710b1be7
-rw-r--r-- 1 root root 349 Sep 3 13:54 post-messagingtest-378e1e84-de1f-4f95-a6ba-e55c7d8a5e5c
Oleg Nenashev
09/04/2023, 11:44 AM*.json
extension in the ls outputVlad Povolotzky
09/04/2023, 11:50 AMroot@wiremock-0:/home/wiremock/mappings# ls -1
post-messagingjson-25f1b193-c1a8-4560-b4c9-4a0fa48db818
post-messagingjson-551e7f3b-7fd7-46a5-a3ef-b560c7576b1c
post-messagingjson-cd2d2762-3c96-469f-9d64-ad721921812c
post-messagingjson-d02207ea-70c8-49f1-a4ee-76b504afafcc
post-messagingjson-d518e1b7-910f-4777-a4c2-66ae710b1be7
post-messagingtest-378e1e84-de1f-4f95-a6ba-e55c7d8a5e5c
root@wiremock-0:/home/wiremock/mappings#
Oleg Nenashev
09/04/2023, 12:45 PMVlad Povolotzky
09/04/2023, 12:47 PMOleg Nenashev
09/07/2023, 10:57 AM