Skip to content

Deprecate bundled MockServer module in favour of the MockServer-maintained module#11833

Open
jamesdbloom wants to merge 2 commits into
testcontainers:mainfrom
jamesdbloom:deprecate-bundled-mockserver-module
Open

Deprecate bundled MockServer module in favour of the MockServer-maintained module#11833
jamesdbloom wants to merge 2 commits into
testcontainers:mainfrom
jamesdbloom:deprecate-bundled-mockserver-module

Conversation

@jamesdbloom
Copy link
Copy Markdown

The bundled org.testcontainers.mockserver.MockServerContainer ships a single TCP port,
defaults to the retired jamesdbloom/mockserver:mockserver-5.5.4 image, and has no
configuration helpers.

MockServer now publishes and maintains its own Testcontainers module,
org.mock-server:mockserver-testcontainers (org.mockserver.testcontainers.MockServerContainer),
which derives the image tag from the client library so container and client stay in version
lockstep, exposes DNS, transparent-proxy (NET_ADMIN), HTTP/3, initialization-JSON, log-level and
arbitrary-property helpers, and provides direct MockServerClient wiring via getClient().

This PR deprecates the bundled class with a Javadoc pointer to the MockServer-maintained module so
existing users are guided to the supported option, and (separate commit) refreshes the stale default
image. Maintained by the MockServer project (github.com/mock-server).

…ained module

The bundled module has no configuration helpers and defaults to a retired image.
MockServer now publishes and maintains its own Testcontainers module,
org.mock-server:mockserver-testcontainers (org.mockserver.testcontainers.MockServerContainer),
which derives the image tag from the client library so container and client stay in version
lockstep and adds DNS, transparent-proxy, HTTP/3, initialization-JSON, log-level and
arbitrary-property helpers plus direct MockServerClient wiring.

This deprecates the bundled classes with a Javadoc pointer to the maintained module, and
adds a note to the module docs recommending it for new projects.

Signed-off-by: James D Bloom <733179+jamesdbloom@users.noreply.github.com>
…erver-7.0.0

The default image was the retired jamesdbloom/mockserver:mockserver-5.5.4. Point it at the
current mockserver/mockserver:mockserver-7.0.0. assertCompatibleWith already accepts both
jamesdbloom/mockserver and mockserver/mockserver, so existing callers are unaffected.

Signed-off-by: James D Bloom <733179+jamesdbloom@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant