Slackbot
02/23/2024, 7:52 PMSteven Cheswic
02/23/2024, 8:49 PMTom
02/23/2024, 9:19 PMSteven Cheswic
02/23/2024, 10:22 PMSteven Cheswic
02/26/2024, 7:20 PMTom
02/26/2024, 7:21 PM--extension
parameter takes the class name, rather than the filename.
But if your extension has the META-INF/services
file you don’t need that parameter at all. I suggest doing it this way.
Are you using the official WireMock Docker image as your base?Steven Cheswic
02/26/2024, 7:25 PMTom
02/26/2024, 7:27 PM/var/wiremock/extensions
inside the container should be sufficient on its own provided you’ve added the service file.Tom
02/26/2024, 7:27 PMTom
02/26/2024, 7:32 PMSteven Cheswic
02/26/2024, 7:33 PMSteven Cheswic
02/26/2024, 7:39 PMTom
02/26/2024, 7:40 PMTom
02/26/2024, 7:41 PMcom.github.tomakehurst.wiremock.extension.Extension
Steven Cheswic
02/26/2024, 7:47 PMTom
02/26/2024, 7:47 PMTom
02/26/2024, 7:48 PMsrc/main/resources/META-INF/services/com.github.tomakehurst.wiremock.extension.Extension
and in this file put the fully-qualified name of your extension class.Steven Cheswic
02/26/2024, 9:19 PMSteven Cheswic
02/26/2024, 9:23 PMTom
02/26/2024, 10:02 PMExtension
? If so, use com.github.tomakehurst.wiremock.extension.Extension
as the filenameSteven Cheswic
02/26/2024, 10:07 PMSteven Cheswic
02/26/2024, 10:16 PM