mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Fluent API for RequestMessagePathMatcher with IgnoreCase flag #308
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 @devzaak on GitHub (Oct 22, 2020).
While writing tests with out of bounds client libraries I ran into an issue of the requests not matching due to being case sensitive. I know it is possible to configure this via JSON for the server. But I have not found a way to do that in fluent api:
Example:
This will not match a request to
.../somepathCurrent workaround for this involves using a bit more code:
Solution would be to add behavior modification flag in the
IRequestBuilder WithPath([NotNull] params string[] paths);asboolparameterIgnoreCaseor alternativelyStringComparisonenum parameter.If this would be an acceptable solution I can provide a PR for this feature.
Thanks!
@StefH commented on GitHub (Oct 22, 2020):
Hello @aslezak,
As workaround you can use:
Would that be good enough for you?
@devzaak commented on GitHub (Oct 22, 2020):
Ah, yes, didn't spot that overload,
That'll do, thanks!