-
-
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
Matching WithParam on OData End Points #72
Comments
Fix for url encoded path + params (1.0.2.10)
Problem was related to url-encoding. See new NuGet : https://www.nuget.org/packages/WireMock.Net/1.0.2.10 |
interestingly after upgrading to 1.0.2.10, none of my requests are matching now |
Can you checkout the example code? (https://github.com/WireMock-Net/WireMock.Net/blob/master/examples/WireMock.Net.ConsoleApplication/MainApp.cs#L43) I tried this:
It could be related to |
ah I see the difference, on the previous version I found I had to escape the spaces manually in my WilcardMatcher:
But with the new module, you can use:
Definite improvement! Thanks |
Yes indeed. Escaping in your strings is not needed. If all is fine, you can close this issue ? |
Thanks for testing. If you have more questions, just ask! |
Our test is making an HTTP call to an OData end point:
http://localhost:5021/navision/OData/Company('My Company')/School()?$filter=(substringof(Code, 'WA')
To match to this I have mocked:
In the tests this is matching on the client request, however if I try and specify the parameter value it fails to match:
Is there any reason why using the value in the WithParam method would cause a mismatch?
Thanks
The text was updated successfully, but these errors were encountered: