-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
Proxy with Transform #252
Comments
I guess it's not supported, however what would be the use-case for this feature? |
I'm trying to make a proxy to another server. Service A calls Service B. I'm using WireMock to mock Service B so I'm putting in Web.Config of Service A the address of my WireMock server instead of the actual Service B URL. I want to have something similar to the priorities example that you have in the wiki, so specific mappings which will be done from my automation solution (which tests Service A) will go to the WireMocked service (instead of Service B) but I want all other calls which are done by real service will go to the actual Service B url and I want all the request parameters to be passed as well, including headers, body, query string etc. I hope that's clear, if not then I'll try to explain better.. |
Can't you just use priority and add a specific automation only header match? So: Automation calls Service A and with a extra header like "Automation" = "yes" Could this work? |
Hello,
I saw in the wiremock that its possible to use Proxy with Transform - http://wiremock.org/docs/response-templating/
I wasnt able to do that in WireMock.Net, it just sets UseTransformer=False. is it possible? In your code I see that perhaps its not since in proxying you do not use Transformer:
Thanks!
Greg
The text was updated successfully, but these errors were encountered: