https://linen.dev logo
#help
Title
e

Ekta Bansal

07/17/2023, 6:23 AM
Is dynamic mocking possible here? like transformerparameter extension
o

Oleg Nenashev

07/17/2023, 7:11 AM
Yes it is possible, and there are a number of plugins doing so. What is your use-case for dynamic mocking?
e

Ekta Bansal

07/17/2023, 7:35 AM
can i get doc of these plugins?
i want to use database to store parameters of accounts like accounts owner, account name, account site, account number, etc. i am mocking the api to get the data, the i am mocking the api to change the values in database, then i again want to mock api to retreive that changed data, can i do that with wiremock?
o

Oleg Nenashev

07/17/2023, 8:06 AM
I suppose you will need https://github.com/wiremock/wiremock-extension-state from @Dirk Bolte
d

Dirk Bolte

07/17/2023, 8:07 AM
... working on a first alpha release of that one - should be ready in a couple of minutes
👍 2
first released pushed: 0.0.3 . It's still pretty alpha but I hope it can help you already
🎉 1
e

Ekta Bansal

07/17/2023, 10:54 AM
how to integarate extension with standalone jar? @Dirk Bolte
d

Dirk Bolte

07/17/2023, 11:04 AM
I haven't taken care of that yet. One dependency that needs to be resolved is the
store
, to make it injectable . Not sure whether I can look at it timely but if you want to tackle it, any help is appreciated
o

Oleg Nenashev

07/17/2023, 11:06 AM
Would the WireMock 2.x approach work with the new extension model? I mean just passing classnames of extensions (after bundling or classpath)
d

Dirk Bolte

07/17/2023, 11:16 AM
have to check as I need access to a store - which is currently passed in as constructor parameter
👍 1