Comments (3)
code implemented but still need to complete:
- integration testing
- manual testing
- documentation
This should be completed be released by Sunday 18th.
from mockserver.
The code implementation and testing is complete and the new API has been released in version 2.10. The only remaining work is to update the documentation.
The Java API is as follows:
mockServerClient
.when(
request()
.withPath("/some_path")
.withBody(new StringBody("some_request_body", Body.Type.EXACT)),
exactly(3)
)
.forward(
forward()
.withHost("some_host")
.withPort(9090)
.withScheme(HttpForward.Scheme.HTTPS)
);
The scheme defaults to HTTP if not specified.
The JSON API is as follows:
{
"httpRequest" : {
"method" : "someMethod",
"url" : "http://www.example.com",
"path" : "/some_path",
"body" : {
"type" : "EXACT",
"value" : "some_request_body"
}
},
"httpForward" : {
"host" : "some_host",
"port" : 9090,
"scheme" : "HTTPS" },
"times" : {
"remainingTimes" : 3,
"unlimited" : false
}
}
from mockserver.
closing issue and opening another issue for documentation
from mockserver.
Related Issues (20)
- JSON comparison does not work with JsonUnit 3.0.0 and higher
- java.io.FileNotFoundException: /config/Initialiser.json (No such file or directory) HOT 1
- mockserver-client-java provides transitive vulnerable dependency maven:commons-collections:commons-collections:3.2.2 (CWE-674)
- Logs of the dashboard not showing. Mock Server 5.15.0 over HTTP
- Mocking an openapi definition with application/xml body never matches valid input
- Times.once returns more than once
- Facebook (facebook-patent-rights-2) license in the mockserver-netty js dashboard files
- It's not working with Spring boot 3.2 version and JUnit5 HOT 1
- Body did not match for XML request
- Heroku error for slack signup
- Possible to have early response before consuming request body
- mockserver failed to initialize the server-side SSL context
- Multiple responses for the same request are not thread-safe
- mock-server client does not support TLS v1.3 HOT 2
- How to proxy to mockserver with auth HOT 1
- "SEVERE exception validating JSON" while parsing pathparameter of openapi-generated request matchers HOT 2
- No support for multi-line MUSTACHE templates in initializerJson.json
- A memory leak caused by the reset method not removing subscribers ultimately leads to an OutOfMemoryError HOT 2
- Extract current Expectations via API
- jsonschema allOf not managed
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 mockserver.