-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Headers matching fails due to splitting multi-value values #1398
Comments
What has generated your Pact file? Are you able to provide the complete file? |
@uglyog like this: "response": {
"status": 200,
"headers": {
"access-control-allow-credentials": "true",
"access-control-allow-headers": "Content-Type, Authorization",
"access-control-allow-methods": "POST, GET, PUT, HEAD, DELETE, OPTIONS, PATCH",
"content-type": "application/json, charset=utf-8"
}
} |
Released 4.1.24 and 4.2.9 |
@uglyog this is still broken Pact content: "headers": {
"access-control-allow-credentials": "true",
"access-control-allow-headers": "Content-Type, Authorization",
"access-control-allow-methods": "POST, GET, PUT, HEAD, DELETE, OPTIONS, PATCH",
"content-type": "application/json, charset=utf-8"
} tests output:
|
I just realized that this is a matter of order now... It works like equals if there are no I just changed the order of headers and this is ok, seems like no issue, thanks. So, the best way to do it in |
I migrate from
au.com.dius.pact.provider:junit:4.1.11
to4.2.7
, same issue with4.1.23
Some tests started failing on:
Pact looks like this:
The provider response headers looks like this:
Obviously, headers are identical, should match. Case sensitive difference it has only, but it isn't the problem as I see in debug: it reaches this line
Looks like it splits the actual response headers and then fails to match. Is this something expected?
The text was updated successfully, but these errors were encountered: