-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
ExactMatcher with array pattern not working? #255
Comments
The best option is to look at the logging from WireMock, there you will see which matchers match correctly. Can you post the logging here? |
I'm not sure what you mean? I posted the request log from __admin/requests |
You can do a GET request to : |
Or look at the console log where WireMock is running |
This is where I took the request log from (second snippet) |
I understand. "MappingGuid": "a51b78ac-1300-4125-aa97-d48953deef4d",
"RequestMatchResult": {
"TotalScore": 1,
"TotalNumber": 1,
"IsPerfectMatch": true,
"AverageTotalScore": 1,
"MatchDetails": [
{
"Name": "PathMatcher",
"Score": 1
}
]
} In your case you don't see this. I'll check why it does not match... |
Oh, that part is missing from my logged request... |
If you set partialmapping to true, you will also get this part... |
Just tried it, but with partial mapping on any request I make just returns the latest mapping regardless of path or parameters. However I would need to have different mappings with same path but different parameters. |
It's a bug. Thanks for finding. |
Can you try a new MyGet version? see https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions |
It's working better in this version but there is still one bug: if I have 2 mappings, one has parameters {1,2} and the second {1,2,3}, when I make a request for {1,2,3} I still get the response for {1,2}. Does that make sense? |
can you try |
I'm still getting the latest mapping back. So first I create mapping for {1,2}, then I create mapping for {1,2,3} and when I request response for {1,2} I get the response from {1,2,3} mapping. |
Please try WireMock.Net.1.0.9-ci-11123.nupkg |
Yes, that's it, working like a charm now! |
@FSatmar --> New official NuGet is uploaded. |
Cheers! |
Hi,
So I created this mapping:
And I'm making this request:
but as you can see it does not work as I'm not getting the expected response. What am I doing wrong?
The text was updated successfully, but these errors were encountered: