Load wiremock stub files

对着背影说爱祢 提交于 2021-01-29 05:50:33

问题


I wanted to load all my wiremock stub files before start-up my cucumber-jvm tests.

As per wiremock docs via API only one file can be pushed. Not bulk. I was think using java code within the test project before kick-off tests.

Whats would be the best way of doing this through the code.


回答1:


By calling wiremock api you can upload multiple stubs in one go as per below solution.

Solution

Try POSTing it to http://localhost:8080/__admin/mappings/import



来源:https://stackoverflow.com/questions/61519644/load-wiremock-stub-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!