We have a requirement in our project where we need...
# help
r
We have a requirement in our project where we need to record all the stub mappings via proxy feature. That is quite straight forward but the challange is we are looking to store all the mappings in database and fetch back from DB during playback. Can anyone please advise if this is feasible? Database being used is MariaDB.
o
Hello. WireMock 3 adds a DataProvider extension point that allows loading from external sources. You can implement the MySQL loader there https://github.com/wiremock/wiremock/issues/2145
There is no CRUD API though, but saving the data can be implemented using external logic or via a listener
r
Thanks oleg. Looks like need to write custom extension for this. I am not a java dev, need to go through code structure.
Hi @Oleg Nenashev
What about storing the stubs in database? how to implement that?
especially during proxy recording
o