Where are Mappings being stored when using wiremock with java
526 views
Skip to first unread message
Rahul Verma
unread,
Nov 2, 2022, 3:50:16 AM11/2/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wiremock-user
Hi Folks,
I started exploring Wiremock and tried using Wiremeock server instance in java to run server and stub few Json Responses
Just wondering where are response being stored when stubbed and once the server stops everything vanishes . Is that in internal memory ?
Tom Akehurst
unread,
Nov 2, 2022, 10:32:22 AM11/2/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wiremock-user
By default they're stored in memory, but you can make them be saved to disk by setting the "persistent": true attribute, or Java equivalent .persistent(true).
You can also save everything currently just in memory with a POST to /__admin/mappings/save
Rahul Verma
unread,
Nov 3, 2022, 1:55:11 AM11/3/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message