Repository navigation
Conversation
|
I wonder if we could change the mock server behaviour under the hood. i.e. if the function was called multiple times like this: It would be the equivalent of sending a |
Yes that is probably a nice way to avoid a public facing change in the dsl, but there will still be a change in the resulting pact file |
|
Okay so think I have solved in pact matching - pact-foundation/pact-reference#568, with a repro in pact core mock server - pact-foundation/pact-core-mock-server#16 The tested library resulted in no end user dsl or pact changes #569 |
Updates to the latest pact-ffi.
v0.5.x introduces the pact core mock server v2, and client behaviour has differed slightly, which shows up in pact-nets regression suite.
With
libpact_ffi0.5.x, a request header configured as separate values can mismatchthe single comma-separated value sent by an HTTP client. Clients will be expected to
configure the expected header as the joined value instead:
This replaces separate calls such as
.WithHeader("X-Request", "request1")and.WithHeader("X-Request", "request2")when those values are sent together in onerequest header.
such as
This is going to change client behaviour so will be a breaking change.
According to RFC 7230,
The only valid exception is
Set-CookieSo the client is expected to fold up multiple headers into a single comma separated string, so one could argue this change is correct, and correcting a previous bug. If the client was sending two headers of the same name, with a different value, they would not be honouring the above RFC
Not sure what this means for versioning here, minor or major.