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
The results that I am seeing and are puzzling me are:
The matchingRules on the request are not being used to generate a request on the verifier, ie, the provider is called with an empty body.
The matching Rules on the request are not being used to check the body provided on the consumer contract test, ie, if I provide 0 or more than 20 characters the consumer tests won't fail.
The response matching Rules on the provider verification are ignored, ie, a match type doesn't error when the property is not being returned. A regex matcher that only accepts numbers doesn't error when the provider returns non-numeric values.
I think that I've read somewhere that the request matchingRules should be used as a stub for the verification of the provider and the matching rules of the response should be used as a comparison between the provider response and the contract.
My understanding of the matching rules for both request and the reply on the consumer side is that they are not used at all, wouldn't be good to check that the request being produced by the consumer is within the parameters expected?
Am I missing something on the setup or usage of Pact that would cause the consumer tests to no match on the request generated by the consumer and for the request sent to the provider to not be generated based on the request contract matching rules?
The text was updated successfully, but these errors were encountered:
Hi,
I've been trying to check the contract on the provider and I am facing a very puzzling result.
So to provide context I have a pact file that looks like:
On the provider, I then execute the following code within a test:
I am using the following code to generate the said pact file:
The results that I am seeing and are puzzling me are:
I think that I've read somewhere that the request matchingRules should be used as a stub for the verification of the provider and the matching rules of the response should be used as a comparison between the provider response and the contract.
My understanding of the matching rules for both request and the reply on the consumer side is that they are not used at all, wouldn't be good to check that the request being produced by the consumer is within the parameters expected?
Am I missing something on the setup or usage of Pact that would cause the consumer tests to no match on the request generated by the consumer and for the request sent to the provider to not be generated based on the request contract matching rules?
The text was updated successfully, but these errors were encountered: