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

Embed Wiremock server #106

Closed
kulasekp opened this issue Feb 18, 2020 · 0 comments
Closed

Embed Wiremock server #106

kulasekp opened this issue Feb 18, 2020 · 0 comments
Assignees
Milestone

Comments

@kulasekp
Copy link
Contributor

We would like to add Wiremock server as a new stub engine.

How to start:

  • add wiremock-standalone dependency to pom.xml:
        <dependency>
            <groupId>com.github.tomakehurst</groupId>
            <artifactId>wiremock-standalone</artifactId>
            <version>2.26.0</version>
        </dependency>
  • under new package: pl.hycom.mokka.stubbing :
    • define WireMockServerConfiguration annotated with @Configuration - it should provide configured WireMockServer using: com.github.tomakehurst.wiremock.core.WireMockConfiguration implementation of com.github.tomakehurst.wiremock.core.Options. The WireMockConfiguration should be configured with Wiremock port - by default 8082. The port should be configurable via application.properties
    • implement CommandLineRunner: WireMockServerRunner - it should start WireMockServer provided by WireMockServerConfiguration bean. It should be possible to enable/disable runner via configuration. By default it should be disabled.
    • if you start Mokka now you should end up with two ports exposed:
      • 8081 - exposed by SpringBoot web servlet
      • 8082 - exposed by WireMock. Under http://localhost:8082/__admin/swagger-ui/ Admin API reference should be exposed
@kulasekp kulasekp added this to the 0.6.0 milestone Feb 18, 2020
@kulasekp kulasekp self-assigned this Feb 18, 2020
kulasekp pushed a commit that referenced this issue Feb 18, 2020
kulasekp added a commit that referenced this issue Feb 18, 2020
kulasekp pushed a commit that referenced this issue Feb 18, 2020
kulasekp pushed a commit that referenced this issue Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant