Where does persist stub <API> stores the mocked da...
# help
p
Where does persist stub API stores the mocked data? In the API doc it says in
backing store
. How do we configure this backing store? From my observation when I perform
/save
and perform restart of the pod, the mappings are lost. So not sure where and how Wiremock is persisting the mapping.
l
I think the default backing store is a file based backing store so I imagine they are being persisted to the container you are running inside your pod. Once the pod is destroyed all of the saved mappings will also be destroyed.
p
is it possible to set some other backing store?
l
Yes, I think you can override the default by implementing an extension that implements the
MappingsSaver
interface or the
MappingsSource
interface if you want to load and save from the same place