Closed sergeyklay closed 1 year ago
👋 Hi! The 'smartbear-supported' label has just been added to this issue, which will create an internal tracking ticket in PactFlow's Jira (PACT-823). We will use this to prioritise and assign a team member to this task. All activity will be public on this ticket. For now, sit tight and we'll update this ticket once we have more information on the next steps.
See our documentation for more information.
pact_verifier_cli 0.10.4 has been released with a fix for this
I can confirm it, now everything works as expected. Thanks for the quick fix!
Hi,
I seem to have hit a dead end with the header verification. Relevant part of pact looks as follows:
I think the regular expression in Python consumer is correct, since I have tested it many times using various tools:
But when I try to verify it, it somehow compares for an exact match, without using a regular expression:
The difference in seconds: 35 vs 52. And it fails because (I guess. I could be wrong.) in pact I have:
but providers returns
I use the same approach ( using regular expression test) for other headers like ETag, Content-Type and they are fine, verification passes as expected. The problem is only with this header.
Of course, I can create the required date on the provider side using request to
/_pact/provider_states
. However, in this case all my efforts will be to provide an exact match, and I would like to use the pattern here.In one of the chats, @TimothyJones suggested that this is the bug with the header parsing where it’s splitting on
,
. Looks like a bug in pact-reference, probably. Anyway, there is a similar issue: https://github.com/pact-foundation/pact-js/issues/1058Versions:
Verifier
Broker