You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a scenario where I send 2 different requests to wiremock.
One has the header Authorization: Bearer invalidToken
The other has the header Authorization: Bearer validToken
I'm trying to assert that I received a request with each of these headers:
Describe the bug
I have a scenario where I send 2 different requests to wiremock.
One has the header
Authorization: Bearer invalidToken
The other has the header
Authorization: Bearer validToken
I'm trying to assert that I received a request with each of these headers:
However, the second assertion fails, because
WithHeader()
only checks the firstAuthorization
header of all received requests.Expected behavior:
Both these assertions should succeed.
WithHeader
should check the headers of all requests, not just the first.Test to reproduce
Other related info
Provide additional information if any.
The text was updated successfully, but these errors were encountered: