-
Notifications
You must be signed in to change notification settings - Fork 27
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
Support different request matchers #12
Comments
Example: Matching on request body.. |
Currently #63 already addresses making request matching more flexible when it comes to the request URI. Matching based on the request body is also interesting because it adds confidence that the request is valid and would work against a real server. We could use jsonPath body matchers. This could look something like this:
This would just match on the presence of the listed request fields. I think matching values does not really make sense in most of the cases. Adding such matchers to the snippet would be relatively easy. The question is rather which patterns do we want to add?
What do you think? |
At the moment the path and query params need to match exactly (using WireMock "equalsTo" matcher).
Let's check if there is need for more sophisticated request matching.
The text was updated successfully, but these errors were encountered: