mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-14 07:33:33 +01:00
[PR #1005] [MERGED] Support for xml namespaces in XPathMatcher #1188
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?
📋 Pull Request Information
Original PR: https://github.com/wiremock/WireMock.Net/pull/1005
Author: @cal-schleupen
Created: 9/29/2023
Status: ✅ Merged
Merged: 10/2/2023
Merged by: @StefH
Base:
master← Head:XmlNamespaceSupport-XPathMather📝 Commits (4)
76afc08Support for xml namespaces in XPathMatcher523388aReview findings of Stef implemented.9eed408Fix of build error1d3445bNew review findings by Stef📊 Changes
6 files changed (+238 additions, -24 deletions)
View changed files
📝
src/WireMock.Net.Abstractions/Admin/Mappings/MatcherModel.cs(+4 -0)➕
src/WireMock.Net.Abstractions/Admin/Mappings/XmlNamespace.cs(+21 -0)📝
src/WireMock.Net/Matchers/XPathMatcher.cs(+77 -22)📝
src/WireMock.Net/Serialization/MatcherMapper.cs(+6 -1)📝
test/WireMock.Net.Tests/Matchers/XPathMatcherTests.cs(+67 -1)📝
test/WireMock.Net.Tests/Serialization/MatcherMapperTests.cs(+63 -0)📄 Description
We have round about 4800 WCF Services in our landscape, thus this faker is really helpful. In order to write more easy request body matchers I would like to write more easy xpath expressions using the xpath matcher as follows:
This implementation handles this so that
matches for example.
Yes, I can use 'local-name()' etc. but I think this way it is more easy.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.