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

Enable proxy mode per mock configuration #95

Closed
kulasekp opened this issue Feb 10, 2020 · 1 comment · Fixed by #124
Closed

Enable proxy mode per mock configuration #95

kulasekp opened this issue Feb 10, 2020 · 1 comment · Fixed by #124
Assignees
Labels
Milestone

Comments

@kulasekp
Copy link
Contributor

kulasekp commented Feb 10, 2020

This issue highly depends on #108

We would like to have possibility to proxy chosen requests.

As we already have Wiremock server embedded (#106) we can reuse its proxying feature: http://wiremock.org/docs/proxying/

Assumption:

  • proxying will be available on WireMock stub engine only.

Proposed solution:

  1. Extend MockConfiguration model with String proxyBaseUrl
  2. Update Configuration page to allow to display end edit newly added field.
  3. Update MockConfiguration -> StubMapping converter (provided with Provide MockConfiguration to StubMapping converter #108)

Once done the following scenario should be possible:

  1. Define Mock Configuration with proxyBaseUrl defined. You may use for example: http://dummy.restapiexample.com/, method GET, path: api/v1/employees
  2. Make a HTTP GET request on: http://localhost:8082/api/v1/employees
  3. You should receive response proxied from http://dummy.restapiexample.com/api/v1/employees

Tip: Please mind the Wiremock server is disabled by default. To enable it set wiremock.enable to true

@kulasekp kulasekp added this to the 0.6.0 milestone Feb 10, 2020
@kulasekp kulasekp self-assigned this Feb 10, 2020
@kulasekp
Copy link
Contributor Author

Suspended until #96 is solved

@kulasekp kulasekp changed the title Add proxy mode Enable proxy mode per mock configuration Feb 19, 2020
@kulasekp kulasekp removed their assignment Feb 19, 2020
@bartoszkuron bartoszkuron self-assigned this Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants