mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
FluentAssertions extensions do not filter headers correctly #578
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 @chrischu on GitHub (Mar 4, 2024).
Originally assigned to: @StefH on GitHub.
Describe the bug
When asserting headers via the FluentAssertions extensions, headers are not filtered correctly (headers from all captured requests are checked).
Expected behavior:
I expect the assertions to only consider the requests that match the previous filters (see example below).
Test to reproduce
This test succeeds although it should fail, since only the POST request has the header, the GET request does not.
Other related info
I'm using WireMock.Net & WireMock.Net.FluentAssertions 1.5.48.
@StefH commented on GitHub (Mar 8, 2024):
@chrischu
I can confirm this bug and it's fixed in preview version 1.5.49-ci-18411
https://github.com/WireMock-Net/WireMock.Net/wiki/MyGet-preview-versions
@chrischu commented on GitHub (Mar 8, 2024):
Thanks for the quick fix!