wiremock in docker with volumes

60 views
Skip to first unread message

Albert Vesker

unread,
Sep 15, 2022, 4:24:20 PM9/15/22
to wiremock-user
Hello. I have such env:

-Wiremock in docker-compose
-volume for stubs
-turned on --record-all
-mappings with proxu mapping

I must before all tests call Wiremock.removeMappings() because of recording (snapshotted mappings) i need clear it when i restart one test a lot of times, but cos of I have volumes, this method deletes in container and in real directory.

I need to reset mappings and delete snapshotted mappings before each run of tests. 

What do u suggest?
Reply all
Reply to author
Forward
0 new messages