Dirk Bolte
07/11/2023, 2:12 PM3.0.0-beta-11
in the state extension. A PR is available at: https://github.com/wiremock/wiremock-extension-state/pull/4 for you to give feedback and see it in use.
Some things I stumbled upon:
• I could only get response templating to work when both templatingEnabled
and globalTemplating
was set to true
.
• For one functionality I had in mind it would be great if a request gets a unique ID . What do you think?
• I'm currently at 4 classes I have to add for the whole set. It hardly makes sense to register them in isolation, so I wonder whether we can add a "collection" extension which can register multiple events + extensions in one shot (similar to what is already done with TemplateHelperProviderExtension
. I can provide an proposal + PR if this something you see as beneficialTom
07/11/2023, 3:36 PM"transformers": ["response-template"]
element to your stub when you declared it?
• ServeEvents already have an id
(UUID) field, is this sufficient for what you’re trying?
• You can use ExtensionFactory
for exactly this purpose, and be able to inject core WireMock services while you’re doing it. Alternatively you can have one class that implements all the extension interfaces you need to support.Dirk Bolte
07/11/2023, 3:38 PMTom
07/12/2023, 9:41 AMDirk Bolte
07/17/2023, 3:01 PMRequestMatcherExtension
to also get the ServeEvent
so that I can access the ID?Tom
07/17/2023, 3:09 PMDirk Bolte
07/17/2023, 3:11 PM