Skip to content

Commit 4efc3db

Browse files
committed
Use older version of WireMock Docker image for extension because of shading
1 parent 0571c8c commit 4efc3db

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@
127127
<destFileName>9cookies-wiremock-extensions.jar</destFileName>
128128
</artifactItem>
129129
</artifactItems>
130+
<!--<includeScope>runtime</includeScope>-->
130131
<excludeArtifactIds>testcontainers</excludeArtifactIds> <!--Looks like the library defect, it should be provided-->
131132
<outputDirectory>${project.build.directory}/test-wiremock-extension</outputDirectory>
132133
<overWriteReleases>false</overWriteReleases>

src/test/java/org/wiremock/integrations/testcontainers/WireMockContainerExtensionTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ public class WireMockContainerExtensionTest {
3939

4040
public static final Logger LOGGER = LoggerFactory.getLogger(WireMockContainerExtensionTest.class);
4141

42+
//TODO: The extension won't work righe with newer WireMock versions because of relocations
4243
@Rule
43-
public WireMockContainer wiremockServer = new WireMockContainer("2.35.0")
44+
public WireMockContainer wiremockServer = new WireMockContainer("2.26.0")
4445
.withStartupTimeout(Duration.ofSeconds(60))
4546
.withMapping("json-body-transformer", WireMockContainerExtensionTest.class, "json-body-transformer.json")
4647
.withExtension("JSON Body Transformer", Collections.singleton("com.ninecookies.wiremock.extensions.JsonBodyTransformer"),

0 commit comments

Comments
 (0)