Overview
This Tutorial documents and illustrates the solution for the Consumer End Implementation that was performed against the ‘GetProducts’ API in CDS. This can serve as a reference for how CONSUMER tests and workflows can be done.
Required Dependencies:
Test:
Call To Mock Server:
Expected Response Body:
“package.json” file consists of the command which help in executing the tests. It also consists of the commands that help the consumer to publish the contracts to Pactflow and to check the validation results locally using “can-i-deploy “.
We must always publish a unique version of consumer contract to Pactflow. Publish command will give an error if we try to publish the same contract twice.
How Does Consumer Contract Look Like?
FAQs