Comments (9)
The 3.2 release has been published to the maven central repo - it may take some time to fully propagate.
from ersatz.
I'll see what I can do.
from ersatz.
Actually, it was basically a stand-alone component anyway, it should not be a big deal to rebuild it. I will add it to the next release. If I can pull together some time, I will see if I can cut a release within a month or two.
from ersatz.
Thank you. Really appreciate the work you do with this library.
from ersatz.
Just curious, is is this an open source project, or would you be interested in building off a branch and trying it out when it's ready?
from ersatz.
It's not an open source project unfortunately but I would be happy to build off a branch and try it out internally.
from ersatz.
I had an idea for what I feel is a better version of the old proxy server, and I'd like to see if it would satisfy your use case.
I am adding a "forwarding" feature as a new type of response provider in the main expectations API, so that you could configure something like the following:
ersatz.expectations(expect -> {
expect.GET("/some/path", req -> {
// optional request matching
req.forward("http://someother:1234");
});
});
which would forward the request to the provided host/port and then return its response as the returned response. To me this seems like it would accomplish the same thing as the old proxy, but you'd also get the request matching for free.
Is there something in your case that I am misunderstanding?
Note: if its a matter of changing a lot of test config - I could bring back the old style as well for a release (deprecated) so that you'd have time to change things over. I am more interested in whether this idea can eventually replace it.
from ersatz.
@radarsh You can checkout the new-proxy-impl
branch and see if that will take care of your use case. Note that I am doing what I mentioned above - the stand-alone proxy server will be around until release 4.0 and then it will be removed again. Please let me know if the new "forwarding" functionality will work for you, and if not, what is missing?
Unless you find anything, I will plan on cutting the 3.2 release sometime next week.
from ersatz.
This has been added to release 3.2, which will be released on Monday.
from ersatz.
Related Issues (20)
- Add generic expectation definition methods HOT 1
- Verify error is not very useful HOT 1
- Missing encoder/decoder should be more clear HOT 1
- Consider a more unified error/mismatch reporting system
- JUnit extension updates
- Add transformation functionality to "forward" HOT 1
- Unable to publish artifacts for v3.2
- Consider bringing the web socket support back HOT 1
- Fix the features list
- Note okhttp as exported
- Add helper for http/https path
- SharedErsatzServer ApplyServerConfig should be defaulted
- Compatibility with Groovy 4? HOT 15
- Bug related to layered configuration and auto-start HOT 1
- Spock extension
- Standalone server
- External configuration
- Dependency updates
- Issue with https certificate and localhost HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ersatz.