Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a mock server module adding support for WireMock #3554

Closed
galegofer opened this issue Dec 4, 2020 · 7 comments
Closed

Provide a mock server module adding support for WireMock #3554

galegofer opened this issue Dec 4, 2020 · 7 comments

Comments

@galegofer
Copy link

It will be very nice to be able to have more choices when adding mock server modules, but just having Mockserver, given WireMock is the most popular one, I think it will be a very good adding.

@galegofer galegofer changed the title Provide a mock server module, but with WireMock Provide a mock server module adding support for WireMock Dec 4, 2020
@Haple
Copy link

Haple commented Dec 17, 2021

Up!

@josejuanmontiel
Copy link

Hi, not exactly...

but with this.. you can do something like this...

public static final DockerImageName WIREMOCK_IMAGE = DockerImageName.parse("wiremock/wiremock:2.32.0-alpine"); public static GenericContainer<?> mockServer = new GenericContainer<>(WIREMOCK_IMAGE).withExposedPorts(8080).waitingFor(Wait.forHttp("/__admin/mappings").withMethod("GET").forStatusCode(200));

@kiview
Copy link
Member

kiview commented Jan 27, 2022

Thanks for sharing @josejuanmontiel 👍

Since it's trivial to use WireMock with GenericContainer, I am closing this issue for now.

If someone has some thoughts and arguments why a dedicated module (as per docs) for WireMock is necessary, please comment on this issue and we can consider reopening it.

@oleg-nenashev
Copy link
Contributor

@kiview @bsideup could you please reopen it? I want to tinker with it on WireMock's side wiremock/ecosystem#1

@kiview
Copy link
Member

kiview commented Apr 13, 2023

Hey @oleg-nenashev, happy to collaborate with you on this. Given we now have https://testcontainers.com/modules/ (where we can also link to external repositories), WDYT about hosting it in its own repository (e.g. under the WireMock org)?

@oleg-nenashev
Copy link
Contributor

Yes, I think it would be the best approach

@oleg-nenashev
Copy link
Contributor

To whomever is interested, here is the alpha version of the module: https://github.com/wiremock/wiremock-testcontainers-java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants