mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Not able to hit the mock server if AllowPartialMapping is not set to true #157
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @arpymastro on GitHub (Dec 14, 2018).
I am setting the mock server as below -
Under FluentMockServerSettings if I do not set "AlowPartialMapping = true" then my request matching doesn't work. It shows - No matching mapping found.
I am stubbing my request, response as -
server
If I set AllowpartialMapping = true then it works fine.
It is a .net core console app and I am using WireMock.Net 1.0.5 nuget package.
@StefH commented on GitHub (Dec 14, 2018):
Can you:
For an example see : https://github.com/WireMock-Net/WireMock.Net/blob/master/examples/WireMock.Net.Console.Net452.Classic/MainApp.cs#L34
This makes sure that logging is written out to console ; and there you can see what is matched or what is not matched
I think you need to add an start
/to the WithPath.Like:
@arpymastro commented on GitHub (Dec 14, 2018):
@StefH - adding
/at start fixed the issue.Thank you.