Closed eddumelendez closed 2 years ago
Hi @eddumelendez
With 'org.mock-server:mockserver-client-java:5.14.0'
dependency the MockServerClient.class.getPackage().getImplementationVersion()
returns 5.14.0
but there is no jamesdbloom/mockserver
docker image published with 5.14.0
tag yet (https://hub.docker.com/r/jamesdbloom/mockserver/tags).
Do you mean we keep testImplementation 'org.mock-server:mockserver-client-java:5.13.2'
dependency and update the image in MockServerContainerRuleTest
to use jamesdbloom/mockserver:mockserver-5.14.0
and dynamically fetch the actualVersion and use it?
@sivaprasadreddy thanks! I've updated the description in order to use mockserver/mockserver
@eddumelendez Created a PR https://github.com/testcontainers/testcontainers-java/pull/5977
Module
MockServer
Proposal
Context:
MockServerContainerRuleTest
fails when upgrading to5.14.0
. It is recommended to use the same server and client version. Currently,MockServerContainerTest
usesMockServerClient.class.getPackage().getImplementationVersion()
to get the version and use it as a tag in the docker image. This approach is different fromMockServerContainerRuleTest
and that’s why it fails.Proposal:
Read
MockServerClient.class.getPackage().getImplementationVersion()
and use it as a part of the tag inMockServerContainerRuleTest
. Use imagemockserver/mockserver