-
Notifications
You must be signed in to change notification settings - Fork 26
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
Request matcher not working on grpc #193
Comments
Hello! Thanks! |
So given this bug, is there any way to return different mock responses for the same API based on request parameters? |
I think there's always the option to run arbitrary code (end of this section: https://testinggospels.github.io/camouflage/request-matching/). |
Apologies for the delay in response. I have been occupied elsewhere and had only been looking at pull requests. I have however looked into the issue. TLDR; Use regex instead of jsonpath as an interim solution. Explanation:
Next Steps:
|
Added new operator Before After Updated mock content
Change would be available in next release |
🎉 This issue has been resolved in version 0.14.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
Trying to match with
is
+capture
doesn't workTo Reproduce
Steps to reproduce the behavior:
docker run -d -p 4312:4312 -v $(pwd):/app --name camouflage shubhendumadhukar/camouflage
Bob
:Alice
:Expected behavior
Step 4 should print a different message:
{ "message": "Bob" }
.The jsonpath is correct, because when returning the message, it correctly says "you are: Bob". However, the comparison doesn't seem to be working.
Additional context
The text was updated successfully, but these errors were encountered: