Comments (9)
Do you mean when recording stubs, POST/PUT request bodies should be captured and used as the resulting matching criteria (in addition to URL + method)?
from wiremock.
yes
from wiremock.
I'll add it to the backlog
from wiremock.
great. It doesn't have to be perfect for the first pass. I have a done a quick two hour hack that's not worth sending you. It just adds the body to the mapping file then does some fixup to the json to format it correctly.
I also have some stuff that allows you to test with or without recording by setting a boolean, and renames the random mapping file to the junit classname-testname so you know at the end what test recorded that file.
from wiremock.
It also automagicallly starts and stops the proxy recorder on windows, linux or mac.
from wiremock.
I should mention that I'm quite busy with other stuff at the moment, so I'm unlikely to get to this any time soon.
If you wanted to polish your changes a bit and ensure there were some decent tests, I'd happily consider a pull request.
from wiremock.
yeah I'm kinda busy too. and your code is so nice, I would hate to hack it up with anything stupid.
from wiremock.
Request body is now recorded if present
from wiremock.
cool thanks
from wiremock.
Related Issues (20)
- WireMock.stubFor(..) should have appropriate error description instead of unclear JsonException on 404 error code from non-WireMock server
- Relative date matching uses the system timezone
- Broken link in /Documentation / Using WireMock with Spring Boot HOT 1
- Fix matcher distance short-circuit biases HOT 1
- Allow scenario state to be scoped to arbitrary request attributes
- Version 3.5.3 of org.wiremock:wiremock-standalone references removed wiremock.org.apache.commons.io.IOUtils HOT 8
- Proxy - changing User-Agent with additionalProxyRequestHeaders stopped working after 3.2.0
- Include conditions in proxying functionality HOT 5
- xPath helper doesn't return result when XPath expression returns a single string item
- wiremock-jetty12: NullPointerException within WireMockHandlerDispatchingServlet (similar to #1224) HOT 1
- Failing while building wiremock-jre8-standalone version 2.31.0 using ./gradlew build (wiremock-jre8-standalone:2.31.0)
- Running tests in parallel with Wiremock 3.0.0 triggers random timing/concurrency issues HOT 1
- @RegisterExtension + WireMockExtension: Timing & state issues when using "static" HOT 1
- EqualsToJson has bad performance for big json with common keys occuring often
- Handlebars helper - join
- Init / shutdown hooks for extensions
- Update org.xmlutil:xmlunit-core to Version 2.10.0 HOT 2
- Introduce a GUI for open source
- NPE on WireMockServer.getServeEvents when using a StubRequestFilter
- Adding more jettyAcceptors seems to do nothing besides cause thread contention. HOT 1
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 wiremock.